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