Test case only passes on non-asserting build

Richard Barton richard.barton at arm.com
Thu Jun 13 10:52:56 PDT 2013


Hi Richard

Your changes to clang test
CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp in r183872 mean that the
test now only passes for a build of clang with asserts on.

The failure output with a non-asserting build is:

/home/ricbar01/llvm/tools/clang/test/CodeGenCXX/cxx0x-initializer-stdinitial
izerlist.cpp:308:12: error: expected string not found in input
 // CHECK: call void @_ZN5dtors1SC1Ev(%"struct.dtors::S"* %arrayinit.begin)
           ^
<stdin>:704:28: note: scanning from here
define void @_ZN5dtors1fEv() #2 {
                           ^
<stdin>:708:2: note: possible intended match here
 call void @_ZN5dtors1SC1Ev(%"struct.dtors::S"* %3)

The label arrayinit.begin is not created for non-asserting build, it has
just a numeric label. 

Could you make your changes also pass on a non-asserting build please?

Thanks
Rich








More information about the cfe-commits mailing list