|
1 |
| -// RUN: %clang_cc1 -std=c++98 %s -verify=expected,cxx98 -fexceptions -fcxx-exceptions -pedantic-errors 2>&1 | FileCheck %s |
2 |
| -// RUN: %clang_cc1 -std=c++11 %s -verify=expected,cxx11-14,since-cxx11 -fexceptions -fcxx-exceptions -pedantic-errors 2>&1 | FileCheck %s |
3 |
| -// RUN: %clang_cc1 -std=c++14 %s -verify=expected,cxx11-14,since-cxx11,since-cxx14 -fexceptions -fcxx-exceptions -pedantic-errors 2>&1 | FileCheck %s |
4 |
| -// RUN: %clang_cc1 -std=c++17 %s -verify=expected,since-cxx11,since-cxx14,since-cxx17 -fexceptions -fcxx-exceptions -pedantic-errors 2>&1 | FileCheck %s |
5 |
| -// RUN: %clang_cc1 -std=c++20 %s -verify=expected,since-cxx11,since-cxx14,since-cxx17,since-cxx20 -fexceptions -fcxx-exceptions -pedantic-errors 2>&1 | FileCheck %s |
6 |
| -// RUN: %clang_cc1 -std=c++23 %s -verify=expected,since-cxx11,since-cxx14,since-cxx17,since-cxx20 -fexceptions -fcxx-exceptions -pedantic-errors 2>&1 | FileCheck %s |
7 |
| -// RUN: %clang_cc1 -std=c++2c %s -verify=expected,since-cxx11,since-cxx14,since-cxx17,since-cxx20 -fexceptions -fcxx-exceptions -pedantic-errors 2>&1 | FileCheck %s |
| 1 | +// RUN: %clang_cc1 -std=c++98 %s -verify=expected,cxx98 -fexceptions -fcxx-exceptions -pedantic-errors |
| 2 | +// RUN: %clang_cc1 -std=c++11 %s -verify=expected,cxx11-14,since-cxx11 -fexceptions -fcxx-exceptions -pedantic-errors |
| 3 | +// RUN: %clang_cc1 -std=c++14 %s -verify=expected,cxx11-14,since-cxx11,since-cxx14 -fexceptions -fcxx-exceptions -pedantic-errors |
| 4 | +// RUN: %clang_cc1 -std=c++17 %s -verify=expected,since-cxx11,since-cxx14,since-cxx17 -fexceptions -fcxx-exceptions -pedantic-errors |
| 5 | +// RUN: %clang_cc1 -std=c++20 %s -verify=expected,since-cxx11,since-cxx14,since-cxx17,since-cxx20 -fexceptions -fcxx-exceptions -pedantic-errors |
| 6 | +// RUN: %clang_cc1 -std=c++23 %s -verify=expected,since-cxx11,since-cxx14,since-cxx17,since-cxx20 -fexceptions -fcxx-exceptions -pedantic-errors |
| 7 | +// RUN: %clang_cc1 -std=c++2c %s -verify=expected,since-cxx11,since-cxx14,since-cxx17,since-cxx20 -fexceptions -fcxx-exceptions -pedantic-errors |
8 | 8 |
|
9 | 9 | namespace std {
|
10 | 10 | __extension__ typedef __SIZE_TYPE__ size_t;
|
@@ -284,39 +284,7 @@ namespace cwg2352 { // cwg2352: 10
|
284 | 284 | #if __cplusplus >= 201103L
|
285 | 285 | static_assert(&p == &check_f, "");
|
286 | 286 | #endif
|
287 |
| -} |
288 |
| - |
289 |
| -namespace cwg2353 { // cwg2353: 9 |
290 |
| - struct X { |
291 |
| - static const int n = 0; |
292 |
| - }; |
293 |
| - |
294 |
| - // CHECK: FunctionDecl {{.*}} use |
295 |
| - int use(X x) { |
296 |
| - // CHECK: MemberExpr {{.*}} .n |
297 |
| - // CHECK-NOT: non_odr_use |
298 |
| - // CHECK: DeclRefExpr {{.*}} 'x' |
299 |
| - // CHECK-NOT: non_odr_use |
300 |
| - return *&x.n; |
301 |
| - } |
302 |
| -#pragma clang __debug dump use |
303 |
| - |
304 |
| - // CHECK: FunctionDecl {{.*}} not_use |
305 |
| - int not_use(X x) { |
306 |
| - // CHECK: MemberExpr {{.*}} .n {{.*}} non_odr_use_constant |
307 |
| - // CHECK: DeclRefExpr {{.*}} 'x' |
308 |
| - return x.n; |
309 |
| - } |
310 |
| -#pragma clang __debug dump not_use |
311 |
| - |
312 |
| - // CHECK: FunctionDecl {{.*}} not_use_2 |
313 |
| - int not_use_2(X *x) { |
314 |
| - // CHECK: MemberExpr {{.*}} ->n {{.*}} non_odr_use_constant |
315 |
| - // CHECK: DeclRefExpr {{.*}} 'x' |
316 |
| - return x->n; |
317 |
| - } |
318 |
| -#pragma clang __debug dump not_use_2 |
319 |
| -} |
| 287 | +} // namespace cwg2352 |
320 | 288 |
|
321 | 289 | namespace cwg2354 { // cwg2354: 15
|
322 | 290 | #if __cplusplus >= 201103L
|
|
0 commit comments