[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Modules / crash-typo-correction-visibility.cpp
blob9f0ed3b7b132079eb5a1714aa8810fbf73656f32
1 // RUN: mkdir -p %t
2 // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fmodule-name=module -o %t/module.pcm -emit-module %S/Inputs/crash-typo-correction-visibility/module.modulemap
3 // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fmodule-file=%t/module.pcm %s -verify
5 struct S {
6 int member; // expected-note {{declared here}}
7 };
9 int f(...);
11 int b = sizeof(f(member)); // expected-error {{undeclared identifier 'member'}}