Skip to content

Commit 8bda8cf

Browse files
committed
[clang][NFC] Fix buildbot failure in drs/23xx.cpp
This is a follow-up to 630548a, which fixed builtbot failure https://lab.llvm.org/buildbot/#/builders/188/builds/41930
1 parent f905877 commit 8bda8cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/test/CXX/drs/dr23xx.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ namespace dr2358 { // dr2358: 16
186186
// CWG2363 was closed as NAD, but its resolution does affirm that
187187
// a friend declaration cannot have an opaque-enumm-specifier.
188188
namespace dr2363 { // dr2363: yes
189-
189+
#if __cplusplus >= 201103L
190190
enum class E0;
191191
enum E1 : int;
192192

@@ -214,6 +214,7 @@ struct A {
214214
// expected-error@-2 {{elaborated enum specifier cannot be declared as a friend}}
215215
// expected-note@-3 {{remove 'enum class' to befriend an enum}}
216216
};
217+
#endif
217218
} // namespace dr2363
218219

219220
namespace dr2370 { // dr2370: no

0 commit comments

Comments
 (0)