mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-07 16:42:07 +00:00
Add tests for generating noalias parameter attribute from __restrict qualified function parameters. C++ tests are currently XFAILing see PR1582.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40583 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6551606a99
commit
db9530599e
8
test/C++Frontend/2007-07-29-RestrictPtrArg.cpp
Normal file
8
test/C++Frontend/2007-07-29-RestrictPtrArg.cpp
Normal file
@ -0,0 +1,8 @@
|
||||
// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep noalias
|
||||
// XFAIL: i[1-9]86|alpha|ia64|arm|x86_64|amd64
|
||||
// NOTE: This should be un-XFAILed when the C++ type qualifiers are fixed
|
||||
|
||||
void foo(int * __restrict myptr1, int * myptr2) {
|
||||
myptr1[0] = 0;
|
||||
myptr2[0] = 0;
|
||||
}
|
8
test/C++Frontend/2007-07-29-RestrictRefArg.cpp
Normal file
8
test/C++Frontend/2007-07-29-RestrictRefArg.cpp
Normal file
@ -0,0 +1,8 @@
|
||||
// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep noalias
|
||||
// XFAIL: i[1-9]86|alpha|ia64|arm|x86_64|amd64
|
||||
// NOTE: This should be un-XFAILed when the C++ type qualifiers are fixed
|
||||
|
||||
void foo(int & __restrict myptr1, int & myptr2) {
|
||||
myptr1 = 0;
|
||||
myptr2 = 0;
|
||||
}
|
6
test/CFrontend/2007-07-29-RestrictPtrArg.c
Normal file
6
test/CFrontend/2007-07-29-RestrictPtrArg.c
Normal file
@ -0,0 +1,6 @@
|
||||
// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep noalias
|
||||
|
||||
void foo(int * __restrict myptr1, int * myptr2) {
|
||||
myptr1[0] = 0;
|
||||
myptr2[0] = 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user