[llvm-commits] [llvm] r40681 - /llvm/trunk/test/C++Frontend/2007-08-01-RestrictMethod.cpp

Christopher Lamb christopher.lamb at gmail.com
Wed Aug 1 13:48:29 CDT 2007


Author: clamb
Date: Wed Aug  1 13:48:29 2007
New Revision: 40681

URL: http://llvm.org/viewvc/llvm-project?rev=40681&view=rev
Log:
Clean up C++ restrict test cases and add a test for restrict qualified methods.

Added:
    llvm/trunk/test/C++Frontend/2007-08-01-RestrictMethod.cpp

Added: llvm/trunk/test/C++Frontend/2007-08-01-RestrictMethod.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/C%2B%2BFrontend/2007-08-01-RestrictMethod.cpp?rev=40681&view=auto

==============================================================================
--- llvm/trunk/test/C++Frontend/2007-08-01-RestrictMethod.cpp (added)
+++ llvm/trunk/test/C++Frontend/2007-08-01-RestrictMethod.cpp Wed Aug  1 13:48:29 2007
@@ -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;
+}





More information about the llvm-commits mailing list