diff options
Diffstat (limited to 'clang/test/Sema')
-rw-r--r-- | clang/test/Sema/attr-cx2.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/attr-deprecated-c2x.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/c2x-maybe_unused-errors.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/c2x-maybe_unused.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/c2x-nodiscard.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/Sema/attr-cx2.c b/clang/test/Sema/attr-cx2.c index 5b537625c12..ec74edf058e 100644 --- a/clang/test/Sema/attr-cx2.c +++ b/clang/test/Sema/attr-cx2.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -fdouble-square-bracket-attributes %s +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -std=c2x %s struct S {}; struct S * [[clang::address_space(1)]] Foo; diff --git a/clang/test/Sema/attr-deprecated-c2x.c b/clang/test/Sema/attr-deprecated-c2x.c index 2505f1294c3..744fb1f7c40 100644 --- a/clang/test/Sema/attr-deprecated-c2x.c +++ b/clang/test/Sema/attr-deprecated-c2x.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -verify -fsyntax-only -fdouble-square-bracket-attributes +// RUN: %clang_cc1 %s -verify -fsyntax-only --std=c2x int f() [[deprecated]]; // expected-note 2 {{'f' has been explicitly marked deprecated here}} void g() [[deprecated]];// expected-note {{'g' has been explicitly marked deprecated here}} diff --git a/clang/test/Sema/c2x-maybe_unused-errors.c b/clang/test/Sema/c2x-maybe_unused-errors.c index 68150dded9d..39ec2da9a15 100644 --- a/clang/test/Sema/c2x-maybe_unused-errors.c +++ b/clang/test/Sema/c2x-maybe_unused-errors.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -Wunused -fdouble-square-bracket-attributes -verify %s +// RUN: %clang_cc1 -fsyntax-only -Wunused -std=c2x -verify %s struct [[maybe_unused]] S1 { // ok int a [[maybe_unused]]; diff --git a/clang/test/Sema/c2x-maybe_unused.c b/clang/test/Sema/c2x-maybe_unused.c index 816cf7835fa..82b9634fc9f 100644 --- a/clang/test/Sema/c2x-maybe_unused.c +++ b/clang/test/Sema/c2x-maybe_unused.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -Wunused -fdouble-square-bracket-attributes -verify %s +// RUN: %clang_cc1 -fsyntax-only -Wunused -std=c2x -verify %s struct [[maybe_unused]] S1 { // ok int a [[maybe_unused]]; diff --git a/clang/test/Sema/c2x-nodiscard.c b/clang/test/Sema/c2x-nodiscard.c index fc5b12347e6..5eaeda40d9b 100644 --- a/clang/test/Sema/c2x-nodiscard.c +++ b/clang/test/Sema/c2x-nodiscard.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -fdouble-square-bracket-attributes -verify %s +// RUN: %clang_cc1 -fsyntax-only -std=c2x -verify %s struct [[nodiscard]] S1 { // ok int i; |