| 1 |
# 0 "dir-only-3.C" |
| 2 |
# 1 "<built-in>" |
| 3 |
# 1 "<command-line>" |
| 4 |
# 31 "<command-line>" |
| 5 |
# 1 "/usr/include/stdc-predef.h" 1 3 4 |
| 6 |
|
| 7 |
# 32 "<command-line>" 2 |
| 8 |
# 1 "dir-only-3.C" |
| 9 |
// { dg-additional-options {-fmodules-ts -fpreprocessed -fdirectives-only} } |
| 10 |
// { dg-module-cmi !foo } |
| 11 |
module; |
| 12 |
#define foo baz |
| 13 |
export module foo; |
| 14 |
// { dg-error "module name 'foo' cannot be an object-like macro" "" { target *-*-* } 5 } |
| 15 |
// { dg-prune-output "not writing module" } |
| 16 |
|
| 17 |
class import {}; |
| 18 |
|
| 19 |
import |
| 20 |
x; |