Files
Jason Merrill 61fd6a338d c++: add -fno-modules to some tests
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.
2025-06-03 12:28:42 -04:00

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" } }