Richard Smith | c51c38b | 2017-04-29 00:34:47 +0000 | [diff] [blame^] | 1 | // 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}} |