OSDN Git Service

cp/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / inherit / conv2.C
1 // PR c++/25895
2 // { dg-do run }
3
4 class base {
5 public:
6   base() {}
7 private:
8   int val_;
9 };
10
11 class derived : public base {
12 public:
13   derived() {}
14 };
15
16 static bool x = true ? (derived*)0 : (base*)0;
17
18 int main ()
19 {
20   if (x)
21     return 1;
22 }