blob: aa1203b73a0870359e3eadddd062334fc39ea432 [file] [log] [blame]
Tanya Lattner2393a242004-11-06 23:08:26 +00001; RUN: not llvm-as -f %s -o /dev/null
2
Chris Lattner23e07e72002-06-08 17:33:16 +00003
4
5int "test"(int %i, int %j, bool %c) {
6 br bool %c, label %A, label %B
7A:
8 br label %C
9B:
10 br label %C
11
12C:
13 %a = phi int [%i, %A], [%j, %B]
14 %x = add int %a, 0 ; Error, PHI's should be grouped!
15 %b = phi int [%i, %A], [%j, %B]
16 ret int %x
17}