xref: /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/pragma-weak.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s
2f4a2713aSLionel Sambuc 
3f4a2713aSLionel Sambuc #pragma weak foo
4f4a2713aSLionel Sambuc static void foo();
5f4a2713aSLionel Sambuc extern "C" {
foo()6f4a2713aSLionel Sambuc   void foo() {
7f4a2713aSLionel Sambuc   };
8f4a2713aSLionel Sambuc }
9*0a6a1f1dSLionel Sambuc 
10*0a6a1f1dSLionel Sambuc extern "C" int Test;
11*0a6a1f1dSLionel Sambuc #pragma weak test = Test
12