diff options
author | Christopher Lamb <christopher.lamb@gmail.com> | 2007-08-01 18:48:29 +0000 |
---|---|---|
committer | Christopher Lamb <christopher.lamb@gmail.com> | 2007-08-01 18:48:29 +0000 |
commit | 4eda05855012deeed85ce6eb6b443d12e6159a27 (patch) | |
tree | 9cea76c2b68d727c4b2ec3f9a300ba06ccc8018e | |
parent | 695e1c69a86e6ee36fa39607f4d86af0dcba712a (diff) |
Clean up C++ restrict test cases and add a test for restrict qualified methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40681 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/C++Frontend/2007-08-01-RestrictMethod.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/C++Frontend/2007-08-01-RestrictMethod.cpp b/test/C++Frontend/2007-08-01-RestrictMethod.cpp new file mode 100644 index 0000000000..b4922beab1 --- /dev/null +++ b/test/C++Frontend/2007-08-01-RestrictMethod.cpp @@ -0,0 +1,13 @@ +// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep noalias + + +class foo { + int member[4]; + + void bar(int * a); + +}; + +void foo::bar(int * a) __restrict { + member[3] = *a; +} |