Debian Codegraph @

gcc/testsuite/g++.dg/modules/macro-4_e.C

raw
1 // { dg-additional-options "-fmodules-ts -Winvalid-imported-macros" }
2
3 import "macro-4_b.H";
4 import "macro-4_a.H";
5 import "macro-4_c.H";
6
7 int stop;
8
9 #ifndef FIVE
10 #error bah!
11 #endif
12
13 // { dg-regexp {[^\n]*macro-4_e.C: warning: inconsistent imported macro definition 'TWO' \[-Winvalid-imported-macros\]\nIn module [^\n]*macro-4_b.H, imported at [^\n]*macro-4_e.C:[0-9]*:\n[^\n]*macro-4_b.H:[0-9]*:[0-9]*: note: .#define TWO 2a.\nIn module [^\n]*macro-4_a.H, imported at [^\n]*macro-4_e.C:[0-9]*:\n[^\n]*macro-4_a.H:[0-9]*:[0-9]*: note: .#define TWO 2.\n} }