Chris Lattner | ddee423 | 2008-03-03 03:28:21 +0000 | [diff] [blame] | 1 | // RUN: clang -emit-llvm < %s | grep 't1.*noreturn' |
| 2 | void t1() __attribute__((noreturn)); |
| 3 | void t1() {} |
| 4 | |
| 5 | // RUN: clang -emit-llvm < %s | grep 't2.*nounwind' |
| 6 | void t2() __attribute__((nothrow)); |
| 7 | void t2() {} |
| 8 | |
| 9 | // RUN: clang -emit-llvm < %s | grep 'weak.*t3' |
| 10 | void t3() __attribute__((weak)); |
| 11 | void t3() {} |
| 12 | |
| 13 | // RUN: clang -emit-llvm < %s | grep 'hidden.*t4' |
| 14 | void t4() __attribute__((visibility(hidden))); |
| 15 | void t4() {} |
| 16 | |
| 17 | // RUN: clang -emit-llvm < %s | grep 't5.*weak' |
| 18 | int t5 __attribute__((weak)) = 2; |
| 19 | |
| 20 | // RUN: clang -emit-llvm < %s | grep 't6.*protected' |
| 21 | int t6 __attribute__((visibility(protected))); |
Chris Lattner | f89e88d | 2008-03-03 03:45:26 +0000 | [diff] [blame] | 22 | |
| 23 | // RUN: clang -emit-llvm < %s | grep 't7.*noreturn' |
Gabor Greif | 15f3622 | 2008-03-03 14:53:09 +0000 | [diff] [blame] | 24 | // RUN: clang -emit-llvm < %s | grep 't7.*nounwind' |
Chris Lattner | f89e88d | 2008-03-03 03:45:26 +0000 | [diff] [blame] | 25 | void t7() __attribute__((noreturn, nothrow)); |
| 26 | void t7() {} |