2010-03-27 08:47:27 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-darwin-apple -emit-llvm %s -o - | FileCheck %s
|
|
|
|
|
|
|
|
// PR6695
|
|
|
|
|
2022-01-16 17:53:11 +08:00
|
|
|
// CHECK: define{{.*}} void @test0(i32* noundef %{{.*}}, i32 noundef %{{.*}})
|
2010-03-27 08:47:27 +08:00
|
|
|
void test0(int *x, int y) {
|
|
|
|
}
|
|
|
|
|
2022-01-16 17:53:11 +08:00
|
|
|
// CHECK: define{{.*}} void @test1(i32* noalias noundef %{{.*}}, i32 noundef %{{.*}})
|
2010-03-27 08:47:27 +08:00
|
|
|
void test1(int * restrict x, int y) {
|
|
|
|
}
|
|
|
|
|
2022-01-16 17:53:11 +08:00
|
|
|
// CHECK: define{{.*}} void @test2(i32* noundef %{{.*}}, i32* noalias noundef %{{.*}})
|
2010-03-27 08:47:27 +08:00
|
|
|
void test2(int *x, int * restrict y) {
|
|
|
|
}
|
|
|
|
|
|
|
|
typedef int * restrict rp;
|
|
|
|
|
2022-01-16 17:53:11 +08:00
|
|
|
// CHECK: define{{.*}} void @test3(i32* noalias noundef %{{.*}}, i32 noundef %{{.*}})
|
2010-03-27 08:47:27 +08:00
|
|
|
void test3(rp x, int y) {
|
|
|
|
}
|
|
|
|
|
2022-01-16 17:53:11 +08:00
|
|
|
// CHECK: define{{.*}} void @test4(i32* noundef %{{.*}}, i32* noalias noundef %{{.*}})
|
2010-03-27 08:47:27 +08:00
|
|
|
void test4(int *x, rp y) {
|
|
|
|
}
|
|
|
|
|