Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / msvc_pragma_alloc_text.cpp
blob2703fbe6efc065839a330161b231c138f68f9ae4
1 // RUN: %clang_cc1 -fms-extensions -S -emit-llvm -o - %s | FileCheck %s
3 extern "C" {
5 void foo();
6 void foo1();
7 void foo2();
8 void foo3();
10 #pragma alloc_text("abc", foo, foo1)
11 #pragma alloc_text("def", foo2)
12 #pragma alloc_text("def", foo3)
14 // CHECK-LABEL: define{{.*}} void @foo() {{.*}} section "abc"
15 void foo() {}
17 // CHECK-LABEL: define{{.*}} void @foo1() {{.*}} section "abc"
18 void foo1() {}
20 // CHECK-LABEL: define{{.*}} void @foo2() {{.*}} section "def"
21 void foo2() {}
23 // CHECK-LABEL: define{{.*}} void @foo3() {{.*}} section "def"
24 void foo3() {}