Chris Lattner | 080b332 | 2008-07-25 20:02:29 +0000 | [diff] [blame^] | 1 | // RUN: clang %s -fsyntax-only -verify |
2 | // rdar://6095180 | ||||
3 | |||||
4 | #include <assert.h> | ||||
5 | struct s { char c[17]; }; | ||||
6 | extern struct s foo (void); | ||||
7 | |||||
8 | // sizeof 'c' should be 17, not sizeof(char*). | ||||
9 | int X[sizeof(0, (foo().c)) == 17 ? 1 : -1]; | ||||
10 | |||||
11 |