File tree Expand file tree Collapse file tree 2 files changed +25
-15
lines changed Expand file tree Collapse file tree 2 files changed +25
-15
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: %clang_cc1 -std=c++98 %s -verify=expected -fexceptions -fcxx-exceptions -pedantic-errors
2
+ // RUN: %clang_cc1 -std=c++11 %s -verify=expected -fexceptions -fcxx-exceptions -pedantic-errors
3
+ // RUN: %clang_cc1 -std=c++14 %s -verify=expected -fexceptions -fcxx-exceptions -pedantic-errors
4
+ // RUN: %clang_cc1 -std=c++17 %s -verify=expected -fexceptions -fcxx-exceptions -pedantic-errors
5
+ // RUN: %clang_cc1 -std=c++20 %s -verify=expected -fexceptions -fcxx-exceptions -pedantic-errors
6
+ // RUN: %clang_cc1 -std=c++23 %s -verify=expected -fexceptions -fcxx-exceptions -pedantic-errors
7
+ // RUN: %clang_cc1 -std=c++2c %s -verify=expected -fexceptions -fcxx-exceptions -pedantic-errors
8
+
9
+ // expected-no-diagnostics
10
+
11
+ #include < stdarg.h>
12
+ #include < stddef.h>
13
+ namespace cwg273 { // cwg273: yes
14
+ struct A {
15
+ int n;
16
+ };
17
+ void operator &(A);
18
+ void f (A a, ...) {
19
+ offsetof (A, n);
20
+ va_list val;
21
+ va_start (val, a);
22
+ va_end (val);
23
+ }
24
+ } // namespace cwg273
Original file line number Diff line number Diff line change @@ -950,21 +950,7 @@ namespace cwg272 { // cwg272: yes
950
950
};
951
951
} // namespace cwg272
952
952
953
- #include < stdarg.h>
954
- #include < stddef.h>
955
- namespace cwg273 { // cwg273: yes
956
- struct A {
957
- int n;
958
- };
959
- void operator &(A);
960
- void f (A a, ...) {
961
- offsetof (A, n);
962
- va_list val;
963
- va_start (val, a);
964
- va_end (val);
965
- }
966
- } // namespace cwg273
967
-
953
+ // cwg273 is in cwg273.cpp
968
954
// cwg274: na
969
955
970
956
namespace cwg275 { // cwg275: no
You can’t perform that action at this time.
0 commit comments