diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-15 16:20:06 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-15 16:20:06 +0000 |
commit | c17d0de1ad09ec0868a72a0d45861c617d74b0fe (patch) | |
tree | 40fc048501d66f0b1d5def16d9ebe2a7ba1b8202 /gcc/testsuite/gcc.dg/pr29299.c | |
parent | 7e9db36e7541c9477fa98d1da2d3d0d4e190dd7c (diff) | |
download | gcc-c17d0de1ad09ec0868a72a0d45861c617d74b0fe.tar.gz |
PR middle-end/29299
* cgraphunit.c (cgraph_finalize_compilation_unit): Call
process_function_and_variable_attributes on all variables, including
those discovered during cgraph construction phase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117746 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr29299.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr29299.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr29299.c b/gcc/testsuite/gcc.dg/pr29299.c new file mode 100644 index 00000000000..9049060fae4 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr29299.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "-O" } */ + +static int bof __attribute__((used)); +int foo() +{ + static int barbarbarbar __attribute__((used)); +}; + +/* { dg-final { scan-assembler "barbarbarbar" } } */ |