Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / extern-section-attribute.cpp
blobb42726cdde5677ef64dc55a6b7da503a670451e3
1 // RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-pc-linux-gnu | FileCheck %s
3 extern int aa __attribute__((section(".sdata")));
4 // CHECK-DAG: @aa = external global i32, section ".sdata", align 4
6 extern int bb __attribute__((section(".sdata"))) = 1;
7 // CHECK-DAG: @bb ={{.*}} global i32 1, section ".sdata", align 4
9 int foo() {
10 return aa + bb;