From 4eda05855012deeed85ce6eb6b443d12e6159a27 Mon Sep 17 00:00:00 2001 From: Christopher Lamb Date: Wed, 1 Aug 2007 18:48:29 +0000 Subject: [PATCH] Clean up C++ restrict test cases and add a test for restrict qualified methods. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40681 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/C++Frontend/2007-08-01-RestrictMethod.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/C++Frontend/2007-08-01-RestrictMethod.cpp diff --git a/test/C++Frontend/2007-08-01-RestrictMethod.cpp b/test/C++Frontend/2007-08-01-RestrictMethod.cpp new file mode 100644 index 00000000000..b4922beab1b --- /dev/null +++ b/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; +} -- 2.34.1