We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d3abc9 commit 99ff5d5Copy full SHA for 99ff5d5
clang/test/AST/Interp/arrays.cpp
@@ -513,11 +513,9 @@ namespace NonConstReads {
513
// both-note {{read of non-const variable 'z'}}
514
#else
515
void *p = nullptr;
516
- int arr[!p]; // ref-error {{not allowed at file scope}} \
517
- // expected-error {{not allowed at file scope}}
+ int arr[!p]; // both-error {{not allowed at file scope}}
518
int z;
519
- int a[z]; // ref-error {{not allowed at file scope}} \
520
+ int a[z]; // both-error {{not allowed at file scope}}
521
#endif
522
523
const int y = 0;
0 commit comments