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:
Christopher Lamb 2007-07-29 23:29:16 +00:00
parent 6551606a99
commit db9530599e
3 changed files with 22 additions and 0 deletions

View 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;
}

View 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;
}

View 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;
}