// 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;
}

Add test forgotten in r314262.
Add test forgotten in r314262.


git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@314268 91177308-0d34-0410-b5e6-96231b3b80d8
