aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/attr-nodebug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/attr-nodebug.cpp')
-rw-r--r--test/SemaCXX/attr-nodebug.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/SemaCXX/attr-nodebug.cpp b/test/SemaCXX/attr-nodebug.cpp
index b441da21f8e7..fd35722f62b1 100644
--- a/test/SemaCXX/attr-nodebug.cpp
+++ b/test/SemaCXX/attr-nodebug.cpp
@@ -1,7 +1,9 @@
-// RUN: %clang_cc1 %s -verify -fsyntax-only
+// RUN: %clang_cc1 %s -std=c++11 -verify -fsyntax-only
// Note: most of the 'nodebug' tests are in attr-nodebug.c.
// expected-no-diagnostics
class c {
void t3() __attribute__((nodebug));
};
+
+[[gnu::nodebug]] void f() {}