1 | // RUN: %clang_cc1 %s |
---|---|
2 | |
3 | #pragma weak foo |
4 | static void foo(); |
5 | extern "C" { |
6 | void foo() { |
7 | }; |
8 | } |
9 | |
10 | extern "C" int Test; |
11 | #pragma weak test = Test |
12 |
1 | // RUN: %clang_cc1 %s |
---|---|
2 | |
3 | #pragma weak foo |
4 | static void foo(); |
5 | extern "C" { |
6 | void foo() { |
7 | }; |
8 | } |
9 | |
10 | extern "C" int Test; |
11 | #pragma weak test = Test |
12 |