aboutsummaryrefslogtreecommitdiff
path: root/contrib/dg-lint/test-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/dg-lint/test-2.c')
-rw-r--r--contrib/dg-lint/test-2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/dg-lint/test-2.c b/contrib/dg-lint/test-2.c
new file mode 100644
index 0000000..147f5b0
--- /dev/null
+++ b/contrib/dg-lint/test-2.c
@@ -0,0 +1,8 @@
+/* Bad directive ordering; see
+ https://gcc.gnu.org/onlinedocs/gccint/Directives.html
+ "This directive must appear after any dg-do directive in the test and
+ before any dg-additional-sources directive." for
+ dg-require-effective-target. */
+
+/* { dg-require-effective-target c++11 } */
+/* { dg-do compile } */