[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / SemaCXX / pr31042.cpp
blobd4995c6e4d6866fd2f3dfd270eb98d06a5f593f2
1 // RUN: %clang_cc1 -o - -emit-llvm -triple x86_64-unknown-linux-gnu -disable-free %s
2 // We need to use -emit-llvm in order to trigger the error, without it semantic analysis
3 // does not verify the used bit and there's no error.
5 char a[1];
7 void f1(void) {
8 int i = 0;
9 int j = sizeof(typeof(*(char(*)[i])a));