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