diff options
author | Christopher Lamb <christopher.lamb@gmail.com> | 2007-08-01 18:48:29 +0000 |
---|---|---|
committer | Christopher Lamb <christopher.lamb@gmail.com> | 2007-08-01 18:48:29 +0000 |
commit | 3567bd863fc6a5b6c3a53ce059f3abc74a16e2b3 (patch) | |
tree | 2ebf1323c71bb92dd5f97dba00bda49d07d8eae8 | |
parent | bc1a69684ccc00a24cf65e2a19ec92da6dd40f43 (diff) | |
download | bcm5719-llvm-3567bd863fc6a5b6c3a53ce059f3abc74a16e2b3.tar.gz bcm5719-llvm-3567bd863fc6a5b6c3a53ce059f3abc74a16e2b3.zip |
Clean up C++ restrict test cases and add a test for restrict qualified methods.
llvm-svn: 40681
-rw-r--r-- | llvm/test/C++Frontend/2007-08-01-RestrictMethod.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/C++Frontend/2007-08-01-RestrictMethod.cpp b/llvm/test/C++Frontend/2007-08-01-RestrictMethod.cpp new file mode 100644 index 00000000000..b4922beab1b --- /dev/null +++ b/llvm/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; +} |