xref: /llvm-project/clang/test/Modules/crash-typo-correction-visibility.cpp (revision 5b57633a45a5072b4292a98d68eb4ddb4f2b63b6)
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
4 
5 struct S {
6   int member; // expected-note {{declared here}}
7 };
8 
9 int f(...);
10 
11 int b = sizeof(f(member)); // expected-error {{undeclared identifier 'member'}}
12