summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-15 16:20:06 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-15 16:20:06 +0000
commitc17d0de1ad09ec0868a72a0d45861c617d74b0fe (patch)
tree40fc048501d66f0b1d5def16d9ebe2a7ba1b8202 /gcc/testsuite/gcc.dg
parent7e9db36e7541c9477fa98d1da2d3d0d4e190dd7c (diff)
downloadgcc-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')
-rw-r--r--gcc/testsuite/gcc.dg/pr29299.c10
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" } } */