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 } 16 case 1: { 17 v++; 18 id w3 = p; 19 break; 20 } 21 case 2: 22 case 3: 23 break; 24 default: 25 break; 26 } 27} 28 29void test2(int p) { 30 switch (p) { 31 case 3: {; 32 NSObject *o = [[NSObject alloc] init]; 33 break; 34 } 35 default: 36 break; 37 } 38} 39