summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p783.C
blob: 0c04d643f81f6b112e6be060ca107016971a1486 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do run  }
// prms-id: 783

extern "C" int printf (const char *, ...);

class C {
public:
  C() { }
  ~C() { }
};

int main(int argc, char**argv) {
  C c,d;
  c = (argc&1) ? C() : d;
  return 0;
}