blob: 67acb15de6254e2632c131c3d7a6540982ef5db8 [file] [log] [blame]
Evan Cheng6bccafd2008-01-26 00:35:43 +00001// RUN: %llvmgcc %s -S -o -
2
3// Aggregates of size zero should be dropped from argument list.
4typedef long int Tlong;
5struct S2411 {
6 __attribute__((aligned)) Tlong:0;
7};
8
9extern struct S2411 a2411[5];
10extern void checkx2411(struct S2411);
11void test2411(void) {
12 checkx2411(a2411[0]);
13}
14
15// A field that is an aggregates of size zero should be dropped during
16// type conversion.
17typedef unsigned long long int Tal2ullong __attribute__((aligned(2)));
18struct S2525 {
19 Tal2ullong: 0;
20 struct {
21 } e;
22};
23struct S2525 s2525;