Clang Project

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