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