Chris Lattner | e63632f | 2004-11-27 19:44:07 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc %s -S -o - | not grep 'foo\* sub' |
2 | // This should not produce a subtrace constantexpr of a pointer | ||||
3 | struct foo { | ||||
4 | int Y; | ||||
5 | char X[100]; | ||||
6 | } F; | ||||
7 | |||||
8 | int test(char *Y) { | ||||
9 | return Y - F.X; | ||||
10 | } |