Reid Spencer | dcb925e | 2007-04-15 20:08:37 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc %s -S -o - | not grep {foo\\* sub} |
Chris Lattner | e63632f | 2004-11-27 19:44:07 +0000 | [diff] [blame] | 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 | } |