Skip to content

Commit a353728

Browse files
authored
Run [[nodiscard]] test in C++23
1 parent edac756 commit a353728

File tree

1 file changed

+3
-2
lines changed
  • clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard

1 file changed

+3
-2
lines changed

clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p2.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
// RUN: %clang_cc1 -fsyntax-only -std=c++20 -verify=expected -Wc++20-extensions %s
2-
// RUN: %clang_cc1 -fsyntax-only -std=c++17 -verify=expected,cxx11-17 -Wc++17-extensions %s
31
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify=expected,cxx11-17,cxx11 -Wc++17-extensions -Wc++20-extensions %s
2+
// RUN: %clang_cc1 -fsyntax-only -std=c++17 -verify=expected,cxx11-17 -Wc++17-extensions %s
3+
// RUN: %clang_cc1 -fsyntax-only -std=c++20 -verify=expected -Wc++20-extensions %s
4+
// RUN: %clang_cc1 -fsyntax-only -std=c++23 -verify=expected %s
45

56
struct [[nodiscard]] S {};
67
S get_s();

0 commit comments

Comments
 (0)