Clean up C++ restrict test cases and add a test for restrict qualified methods.
authorChristopher Lamb <christopher.lamb@gmail.com>
Wed, 1 Aug 2007 18:48:29 +0000 (18:48 +0000)
committerChristopher Lamb <christopher.lamb@gmail.com>
Wed, 1 Aug 2007 18:48:29 +0000 (18:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40681 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2007-08-01-RestrictMethod.cpp [new file with mode: 0644]

diff --git a/test/C++Frontend/2007-08-01-RestrictMethod.cpp b/test/C++Frontend/2007-08-01-RestrictMethod.cpp
new file mode 100644 (file)
index 0000000..b4922be
--- /dev/null
@@ -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;
+}