Add test forgotten in r314262.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314268 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Erich Keane 2017-09-27 03:23:02 +00:00
parent a6b278dc4b
commit b7eb46b39c
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-pc-linux-gnu | FileCheck %s
extern int aa __attribute__((section(".sdata")));
// CHECK-DAG: @aa = external global i32, section ".sdata", align 4
extern int bb __attribute__((section(".sdata"))) = 1;
// CHECK-DAG: @bb = global i32 1, section ".sdata", align 4
int foo() {
return aa + bb;
}