diff options
Diffstat (limited to 'clang/test/Sema/switch.c')
| -rw-r--r-- | clang/test/Sema/switch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Sema/switch.c b/clang/test/Sema/switch.c index 7aa695d7cb9..e4e4ee5497a 100644 --- a/clang/test/Sema/switch.c +++ b/clang/test/Sema/switch.c @@ -372,6 +372,7 @@ void switch_on_ExtendedEnum1(enum ExtendedEnum1 e) { case EE1_b: break; case EE1_c: break; // no-warning case EE1_d: break; // expected-warning {{case value not in enumerated type 'enum ExtendedEnum1'}} + // expected-warning@-1 {{comparison of two values with different enumeration types ('enum ExtendedEnum1' and 'const enum ExtendedEnum1_unrelated')}} } } |

