1 /* Test for redefining macros with mismatch token count (and the oddity). */
2 
3 /* { dg-do preprocess } */
4 /* { dg-options "-DC -DD=1 -DE" } */
5 
6 #define A
7 #define A 1
8 #define B 2 3
9 #define B 2
10 #define C 1
11 #define D 1 2
12 #define E
13 
14 /* { dg-warning "-:redefined" "redef A"      { target *-*-* } 7  }
15    { dg-warning "-:redefined" "redef B"      { target *-*-* } 9  }
16    { dg-warning "-:redefined" "redef D"      { target *-*-* } 11 }
17    { dg-warning "-:redefined" "redef E"      { target *-*-* } 12 }
18    { dg-message "-:previous"  "prev def A"   { target *-*-* } 6  }
19    { dg-message "-:previous"  "prev def B"   { target *-*-* } 8  }
20    { dg-message "-:previous"  "prev def D/E" { target *-*-* } 0  }
21 */
22