rtl: Validate subreg info when optimizing vec_select.
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / cxa_atexit-3.C
blob42cc7ccb11bafdff0fc924ce9de094f215da28ed
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-cddce1-details -fdump-tree-optimized" } */
3 // { dg-require-effective-target cxa_atexit }
4 /* PR tree-optimization/19661 */
6 /* We should not remove the call to atexit as A::~A is unknown.  */
8 struct A { 
9     A(); 
10     ~A();
11 }; 
13 void foo () { 
14   static A a; 
15
17 /* { dg-final { scan-tree-dump-not "Deleting : (?:__cxxabiv1::__cxa_atexit|__aeabiv1::__aeabi_atexit)" "cddce1" } } */
18 /* { dg-final { scan-tree-dump-times "(?:__cxa_atexit|__aeabi_atexit)" 1 "optimized" } } */