1 // RUN: %clang_cc1 -fms-extensions -S -emit-llvm -o - %s | FileCheck %s 2 3 extern "C" { 4 5 void foo(); 6 void foo1(); 7 void foo2(); 8 void foo3(); 9 10 #pragma alloc_text("abc", foo, foo1) 11 #pragma alloc_text("def", foo2) 12 #pragma alloc_text("def", foo3) 13 14 // CHECK-LABEL: define{{.*}} void @foo() {{.*}} section "abc" 15 void foo() {} 16 17 // CHECK-LABEL: define{{.*}} void @foo1() {{.*}} section "abc" 18 void foo1() {} 19 20 // CHECK-LABEL: define{{.*}} void @foo2() {{.*}} section "def" 21 void foo2() {} 22 23 // CHECK-LABEL: define{{.*}} void @foo3() {{.*}} section "def" 24 void foo3() {} 25 } 26