summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/crash-typo-correction-visibility.cpp
blob: 9f0ed3b7b132079eb5a1714aa8810fbf73656f32 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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

struct S {
  int member; // expected-note {{declared here}}
};

int f(...);

int b = sizeof(f(member)); // expected-error {{undeclared identifier 'member'}}
OpenPOWER on IntegriCloud