1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -fobjc-arc -x objective-c %s.result
2// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c %s > %t
3// RUN: diff %t %s.result
4
5#include "Common.h"
6
7void test(id p, int x) {
8  int v;
9  switch(x) {
10  case 0:
11    v++;
12    id w1 = p;
13    id w2 = p;
14    break;
15  case 1:
16    v++;
17    id w3 = p;
18    break;
19  case 2:
20  case 3:
21    break;
22  default:
23    break;
24  }
25}
26
27void test2(int p) {
28  switch (p) {
29  case 3:;
30    NSObject *o = [[NSObject alloc] init];
31    [o release];
32    break;
33  default:
34    break;
35  }
36}
37