]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/2004-11-27-InvalidConstantExpr.c
Vendor import of clang tags/RELEASE_33/final r183502 (effectively, 3.3
[FreeBSD/FreeBSD.git] / test / CodeGen / 2004-11-27-InvalidConstantExpr.c
1 // RUN: %clang_cc1 %s -emit-llvm -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