diff options
Diffstat (limited to 'test/Driver/unknown-std.cpp')
-rw-r--r-- | test/Driver/unknown-std.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/test/Driver/unknown-std.cpp b/test/Driver/unknown-std.cpp index faeb2cba8a4b7..4f7a5e64a6ed4 100644 --- a/test/Driver/unknown-std.cpp +++ b/test/Driver/unknown-std.cpp @@ -2,24 +2,20 @@ // When user selects invalid language standard // print out supported values with short description. -// RUN: not %clang %s -std=foobar -c 2>&1 | \ -// RUN: FileCheck --match-full-lines %s +// RUN: not %clang %s -std=foobar -c 2>&1 | FileCheck --match-full-lines %s +// RUN: not %clang -x objective-c++ %s -std=foobar -c 2>&1 | FileCheck --match-full-lines %s +// RUN: not %clang -x cuda -nocudainc -nocudalib %s -std=foobar -c 2>&1 | FileCheck --match-full-lines --check-prefix=CHECK --check-prefix=CUDA %s // CHECK: error: invalid value 'foobar' in '-std=foobar' -// CHECK-NEXT: note: use 'c++98' for 'ISO C++ 1998 with amendments' standard -// CHECK-NEXT: note: use 'c++03' for 'ISO C++ 1998 with amendments' standard -// CHECK-NEXT: note: use 'gnu++98' for 'ISO C++ 1998 with amendments and GNU extensions' standard -// CHECK-NEXT: note: use 'c++0x' for 'ISO C++ 2011 with amendments' standard +// CHECK-NEXT: note: use 'c++98' or 'c++03' for 'ISO C++ 1998 with amendments' standard +// CHECK-NEXT: note: use 'gnu++98' or 'gnu++03' for 'ISO C++ 1998 with amendments and GNU extensions' standard // CHECK-NEXT: note: use 'c++11' for 'ISO C++ 2011 with amendments' standard -// CHECK-NEXT: note: use 'gnu++0x' for 'ISO C++ 2011 with amendments and GNU extensions' standard // CHECK-NEXT: note: use 'gnu++11' for 'ISO C++ 2011 with amendments and GNU extensions' standard -// CHECK-NEXT: note: use 'c++1y' for 'ISO C++ 2014 with amendments' standard // CHECK-NEXT: note: use 'c++14' for 'ISO C++ 2014 with amendments' standard -// CHECK-NEXT: note: use 'gnu++1y' for 'ISO C++ 2014 with amendments and GNU extensions' standard // CHECK-NEXT: note: use 'gnu++14' for 'ISO C++ 2014 with amendments and GNU extensions' standard // CHECK-NEXT: note: use 'c++1z' for 'Working draft for ISO C++ 2017' standard // CHECK-NEXT: note: use 'gnu++1z' for 'Working draft for ISO C++ 2017 with GNU extensions' standard -// CHECK-NEXT: note: use 'cuda' for 'NVIDIA CUDA(tm)' standard +// CUDA-NEXT: note: use 'cuda' for 'NVIDIA CUDA(tm)' standard // Make sure that no other output is present. // CHECK-NOT: {{^.+$}} |