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