blob: 73e0601894dab6bf37a63475e1ae832bfb7db4aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// RUN: clang -emit-llvm < %s | grep 't1.*noreturn'
void t1() __attribute__((noreturn));
void t1() {}
// RUN: clang -emit-llvm < %s | grep 't2.*nounwind'
void t2() __attribute__((nothrow));
void t2() {}
// RUN: clang -emit-llvm < %s | grep 'weak.*t3'
void t3() __attribute__((weak));
void t3() {}
// RUN: clang -emit-llvm < %s | grep 'hidden.*t4'
void t4() __attribute__((visibility(hidden)));
void t4() {}
// RUN: clang -emit-llvm < %s | grep 't5.*weak'
int t5 __attribute__((weak)) = 2;
// RUN: clang -emit-llvm < %s | grep 't6.*protected'
int t6 __attribute__((visibility(protected)));
// RUN: clang -emit-llvm < %s | grep 't7.*noreturn'
// RUN: clang -emit-llvm < %s | grep 't7.*nothrow'
void t7() __attribute__((noreturn, nothrow));
void t7() {}
|