nsdmi-union5.C: Change to runtime test.
2014-04-24 Joey Ye <joey.ye@arm.com> * g++.dg/cpp0x/nsdmi-union5.C: Change to runtime test. From-SVN: r209738
This commit is contained in:
parent
683e3333a7
commit
1e7251a725
|
@ -1,3 +1,7 @@
|
|||
2014-04-24 Joey Ye <joey.ye@arm.com>
|
||||
|
||||
* g++.dg/cpp0x/nsdmi-union5.C: Change to runtime test.
|
||||
|
||||
2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
||||
|
||||
* lib/target-supports.exp (check_effective_target_vect_bswap): New.
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
// PR c++/58701
|
||||
// { dg-require-effective-target c++11 }
|
||||
// { dg-final { scan-assembler "7" } }
|
||||
// { dg-do run { target c++11 } }
|
||||
|
||||
static union
|
||||
{
|
||||
|
@ -9,3 +8,10 @@ static union
|
|||
int i = 7;
|
||||
};
|
||||
};
|
||||
|
||||
extern "C" void abort(void);
|
||||
int main()
|
||||
{
|
||||
if (i != 7) abort();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue