summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/arm6.C
blob: a057b1898bea16a27350c47995d358acaf119a6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do assemble  }
// GROUPS passed ARM-compliance
// arm file
// Message-Id: <9211231051.AA11287@us-es.sel.de>
// From: dcb@us-es.sel.de
// Subject: ARM page 87
// Date: Mon, 23 Nov 92 11:51:38 +0100


int main() {
        int a;

        switch (a) {
        case 1:
                int v2 = 3;// { dg-error "" }    crosses.*
        case 2:// { dg-error "" }  jump.*
                if (v2 == 7)    // error not flagged by 2.3.1
                        ;
        }

        return 0;
}