aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr69733.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr69733.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr69733.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr69733.c b/gcc/testsuite/gcc.dg/pr69733.c
new file mode 100644
index 0000000..b4f4621
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr69733.c
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+/* { dg-options "-W -fdiagnostics-show-caret" } */
+
+double val;
+
+_Atomic double val0() {return val;} /* { dg-warning "qualifiers ignored" } */
+/* { dg-begin-multiline-output "" }
+ _Atomic double val0() {return val;}
+ ^~~~~~~
+{ dg-end-multiline-output "" } */
+