Chris Lattner | dab02ae | 2003-11-02 20:43:10 +0000 | [diff] [blame] | 1 | ; This is the same testcase as 2003-06-29-NodeCollapsing2.ll, but it uses the |
| 2 | ; graph checker. |
| 3 | ; |
| 4 | ; RUN: analyze %s -datastructure-gc -dsgc-abort-if-any-collapsed |
| 5 | ; |
| 6 | |
| 7 | %S = type { double, int } |
| 8 | %T = type { double, int, sbyte } |
| 9 | |
| 10 | void %test() { |
| 11 | %A = alloca double* |
| 12 | %B = alloca %S |
| 13 | %C = alloca %T |
| 14 | %b = getelementptr %S* %B, long 0, ubyte 0 |
| 15 | %c = getelementptr %T* %C, long 0, ubyte 0 |
| 16 | |
| 17 | store double* %b, double** %A |
| 18 | store double* %c, double** %A |
| 19 | ret void |
| 20 | } |