aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/switch-duplicate-defaults.c
blob: 9ef683b48b9d0fea8491bcc543a0eeb364775579 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: clang -fsyntax-only -verify %s

void f (int z) { 
  switch(z) {
      default:  // expected-error {{first label is here}}
      default:  // expected-error {{multiple default labels in one switch}}
        break;
  }
}