diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGenCXX/mangle.cpp | 3 | ||||
-rw-r--r-- | test/CodeGenOpenCL/local.cl | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle.cpp b/test/CodeGenCXX/mangle.cpp index 5dad030d5e..e7955a8ed9 100644 --- a/test/CodeGenCXX/mangle.cpp +++ b/test/CodeGenCXX/mangle.cpp @@ -872,3 +872,6 @@ namespace test37 { func(foo().d); } } + +// CHECK: define void @_Z6ASfuncPU3AS3i +void ASfunc(__attribute__((address_space(3))) int* x) {} diff --git a/test/CodeGenOpenCL/local.cl b/test/CodeGenOpenCL/local.cl index 32fa7be0f7..b4bd0085df 100644 --- a/test/CodeGenOpenCL/local.cl +++ b/test/CodeGenOpenCL/local.cl @@ -5,3 +5,8 @@ __kernel void foo(void) { __local int i; ++i; } + +// CHECK: define void @_Z3barPU3AS2i +__kernel void __attribute__((__overloadable__)) bar(local int *x) { + *x = 5; +} |