aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr91221.C
blob: 3036f1bc43b25bd9c330b2d1097a9022c1a13f4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do compile }
// { dg-options "-O2 -fno-ipa-pure-const -fpack-struct -Wno-address-of-packed-member" }

void printf(...);
struct A {
    A() : bar_(), dbar_() {
	for (int i;; i++)
	  printf(i, bar_[i]);
    }
    int bar_[5];
    double dbar_[5];
};
void fn1() { A a; }