summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/decldef.mm
blob: 3d24a0ef533f063a9ec2044d07e5372e484d2439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: rm -rf %t
// RUN: %clang_cc1 -I %S/Inputs -fmodule-cache-path %t %s -verify

__import_module__ decldef;
A *a1; // expected-error{{unknown type name 'A'}}
B *b1; // expected-error{{unknown type name 'B'}}

__import_module__ decldef.Decl;

A *a2;
B *b;

void testB() {
  B b; // FIXME: Should error, because we can't see the definition.
}
OpenPOWER on IntegriCloud