blob: ee8642fa3aa231e403dd7dccb49ffb6ab072312c [file] [log] [blame]
Reid Spencerdcb925e2007-04-15 20:08:37 +00001// RUN: %llvmgcc %s -S -o - | not grep {foo\\* sub}
Chris Lattnere63632f2004-11-27 19:44:07 +00002// This should not produce a subtrace constantexpr of a pointer
3struct foo {
4 int Y;
5 char X[100];
6} F;
7
8int test(char *Y) {
9 return Y - F.X;
10}