summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/expr-comma.c
blob: 7a601e9b3d678067775bdb71845074cd7530d8fc (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: clang %s -fsyntax-only -verify
// rdar://6095180

#include <assert.h>
struct s { char c[17]; };
extern struct s foo (void);

// sizeof 'c' should be 17, not sizeof(char*).
int X[sizeof(0, (foo().c)) == 17 ? 1 : -1];


OpenPOWER on IntegriCloud