mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 12:00:11 -05:00
These tests in the modules/ directory specifically want to test behavior without modules enabled, so let's make that explicit. gcc/testsuite/ChangeLog: * g++.dg/modules/cpp-1.C * g++.dg/modules/cpp-3.C * g++.dg/modules/cpp-4.C: Specify -fno-modules.
11 lines
233 B
C
11 lines
233 B
C
// { dg-do preprocess }
|
|
// { dg-additional-options -fno-modules }
|
|
|
|
#define NAME(X) X;
|
|
|
|
export module NAME(bob)
|
|
|
|
int i;
|
|
// { dg-final { scan-file cpp-3.i "\nexport module bob;\n" } }
|
|
// { dg-final { scan-file cpp-3.i "\nint i;\n" } }
|