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