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
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 0000000..b4922be
--- /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;
+}