aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/2007-07-29-RestrictRefArg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/2007-07-29-RestrictRefArg.cpp')
-rw-r--r--test/CodeGenCXX/2007-07-29-RestrictRefArg.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGenCXX/2007-07-29-RestrictRefArg.cpp b/test/CodeGenCXX/2007-07-29-RestrictRefArg.cpp
new file mode 100644
index 000000000000..aa9f48bb0abc
--- /dev/null
+++ b/test/CodeGenCXX/2007-07-29-RestrictRefArg.cpp
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+
+void foo(int & __restrict myptr1, int & myptr2) {
+ // CHECK: noalias
+ myptr1 = 0;
+ myptr2 = 0;
+}