2017-08-16 03:47:06 +08:00
|
|
|
// RUN: mkdir -p %t
|
|
|
|
// 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
|
|
|
|
// RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fmodule-file=%t/module.pcm %s -verify
|
2017-06-06 06:29:36 +08:00
|
|
|
|
|
|
|
struct S {
|
|
|
|
int member; // expected-note {{declared here}}
|
|
|
|
};
|
|
|
|
|
|
|
|
int f(...);
|
|
|
|
|
|
|
|
int b = sizeof(f(member)); // expected-error {{undeclared identifier 'member'}}
|