mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
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
This commit is contained in:
parent
695e1c69a8
commit
4eda058550
13
test/C++Frontend/2007-08-01-RestrictMethod.cpp
Normal file
13
test/C++Frontend/2007-08-01-RestrictMethod.cpp
Normal file
@ -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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user