diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-12 23:32:54 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-12 23:32:54 +0000 |
commit | 30510abee628c645285e01cfd4779610d46a822c (patch) | |
tree | a147693681e3011d02ca9dca42fcfc6d57ed7f28 /test/CodeGen/attributes.c | |
parent | 3855b9a8f05d3f6aba14dcd9aff3147eb8ff57bd (diff) | |
download | clang-30510abee628c645285e01cfd4779610d46a822c.tar.gz |
Honor attribute section on static block var decls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64411 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/attributes.c')
-rw-r--r-- | test/CodeGen/attributes.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/CodeGen/attributes.c b/test/CodeGen/attributes.c index aa4e3efb1d..171c81081a 100644 --- a/test/CodeGen/attributes.c +++ b/test/CodeGen/attributes.c @@ -11,7 +11,8 @@ // RUN: grep '@t10().*section "SECT"' %t && // RUN: grep '@t11().*section "SECT"' %t && // RUN: grep '@t12 =.*section "SECT"' %t && -// RUN: grep '@t13 =.*section "SECT"' %t +// RUN: grep '@t13 =.*section "SECT"' %t && +// RUN: grep '@t14.x =.*section "SECT"' %t void t1() __attribute__((noreturn)); void t1() {} @@ -41,4 +42,8 @@ void __attribute__((section("SECT"))) t11(void) {} int t12 __attribute__((section("SECT"))); struct s0 { int x; }; -struct s0 t13 __attribute__ ((section ("SECT"))) = { 0 }; +struct s0 t13 __attribute__((section("SECT"))) = { 0 }; + +void t14(void) { + static int x __attribute__((section("SECT"))) = 0; +} |