aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/weak/weak-11.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/weak/weak-11.c')
-rw-r--r--gcc/testsuite/gcc.dg/weak/weak-11.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/weak/weak-11.c b/gcc/testsuite/gcc.dg/weak/weak-11.c
new file mode 100644
index 00000000000..c20135a3aae
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/weak/weak-11.c
@@ -0,0 +1,10 @@
+/* PR 19031 */
+/* { dg-do compile } */
+/* { dg-require-weak "" } */
+/* { dg-require-alias "" } */
+/* { dg-options "-funit-at-a-time" } */
+
+/* { dg-final { scan-assembler "xyzzy" } } */
+
+static const int local = 1;
+#pragma weak xyzzy = local