Skip to content

Commit 99ff5d5

Browse files
committed
[clang][Interp][NFC] Simplify test
1 parent 8d3abc9 commit 99ff5d5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/test/AST/Interp/arrays.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,11 +513,9 @@ namespace NonConstReads {
513513
// both-note {{read of non-const variable 'z'}}
514514
#else
515515
void *p = nullptr;
516-
int arr[!p]; // ref-error {{not allowed at file scope}} \
517-
// expected-error {{not allowed at file scope}}
516+
int arr[!p]; // both-error {{not allowed at file scope}}
518517
int z;
519-
int a[z]; // ref-error {{not allowed at file scope}} \
520-
// expected-error {{not allowed at file scope}}
518+
int a[z]; // both-error {{not allowed at file scope}}
521519
#endif
522520

523521
const int y = 0;

0 commit comments

Comments
 (0)