blob: 59f3e73297bd78f7937092b3c22dd79255128f01 [file] [log] [blame]
Chris Lattnerddee4232008-03-03 03:28:21 +00001// RUN: clang -emit-llvm < %s | grep 't1.*noreturn'
2void t1() __attribute__((noreturn));
3void t1() {}
4
5// RUN: clang -emit-llvm < %s | grep 't2.*nounwind'
6void t2() __attribute__((nothrow));
7void t2() {}
8
9// RUN: clang -emit-llvm < %s | grep 'weak.*t3'
10void t3() __attribute__((weak));
11void t3() {}
12
13// RUN: clang -emit-llvm < %s | grep 'hidden.*t4'
14void t4() __attribute__((visibility(hidden)));
15void t4() {}
16
17// RUN: clang -emit-llvm < %s | grep 't5.*weak'
18int t5 __attribute__((weak)) = 2;
19
20// RUN: clang -emit-llvm < %s | grep 't6.*protected'
21int t6 __attribute__((visibility(protected)));