Add tests for generating noalias parameter attribute from __restrict qualified function parameters. C++ tests are currently XFAILing see PR1582.

llvm-svn: 40583
diff --git a/llvm/test/C++Frontend/2007-07-29-RestrictPtrArg.cpp b/llvm/test/C++Frontend/2007-07-29-RestrictPtrArg.cpp
new file mode 100644
index 0000000..e45eda0
--- /dev/null
+++ b/llvm/test/C++Frontend/2007-07-29-RestrictPtrArg.cpp
@@ -0,0 +1,8 @@
+// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep noalias
+// XFAIL: i[1-9]86|alpha|ia64|arm|x86_64|amd64
+// NOTE: This should be un-XFAILed when the C++ type qualifiers are fixed
+
+void foo(int * __restrict myptr1, int * myptr2) {
+  myptr1[0] = 0;
+  myptr2[0] = 0;
+}