xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/2010-03-09-AnonAggregate.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -g -S -o %t %s
2*f4a2713aSLionel Sambuc // PR: 6554
3*f4a2713aSLionel Sambuc // More then one anonymous aggregates on one line creates chaos when MDNode uniquness is
4*f4a2713aSLionel Sambuc // combined with RAUW operation.
5*f4a2713aSLionel Sambuc // This test case causes crashes if malloc is configured to trip buffer overruns.
6*f4a2713aSLionel Sambuc class MO {
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc   union {       struct {       union {    int BA;       } Val;       int Offset;     } OffsetedInfo;   } Contents;
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc };
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc class MO m;
13