summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/pragma_module.c
blob: d734f66efcef5274523d8cc4886052f3845b2c16 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang -cc1 -E -fmodules %s -verify

// Just checking the syntax here; the semantics are tested elsewhere.
#pragma clang module import // expected-error {{expected identifier in module name}}
#pragma clang module import ! // expected-error {{expected identifier in module name}}
#pragma clang module import if // expected-error {{expected identifier in module name}}
#pragma clang module import foo ? bar // expected-error {{expected '.' or end of directive after module name}}
#pragma clang module import foo. // expected-error {{expected identifier}}
#pragma clang module import foo.bar.baz.quux // expected-error {{module 'foo' not found}}

#error here // expected-error {{here}}