blob: d734f66efcef5274523d8cc4886052f3845b2c16 [file] [log] [blame]
Richard Smithc51c38b2017-04-29 00:34:47 +00001// RUN: %clang -cc1 -E -fmodules %s -verify
2
3// Just checking the syntax here; the semantics are tested elsewhere.
4#pragma clang module import // expected-error {{expected identifier in module name}}
5#pragma clang module import ! // expected-error {{expected identifier in module name}}
6#pragma clang module import if // expected-error {{expected identifier in module name}}
7#pragma clang module import foo ? bar // expected-error {{expected '.' or end of directive after module name}}
8#pragma clang module import foo. // expected-error {{expected identifier}}
9#pragma clang module import foo.bar.baz.quux // expected-error {{module 'foo' not found}}
10
11#error here // expected-error {{here}}