diff options
Diffstat (limited to 'clang/test/CodeGenCXX/2007-07-29-RestrictRefArg.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/2007-07-29-RestrictRefArg.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/2007-07-29-RestrictRefArg.cpp b/clang/test/CodeGenCXX/2007-07-29-RestrictRefArg.cpp new file mode 100644 index 0000000..aa9f48b --- /dev/null +++ b/clang/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; +} |