summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/rfg9.C
blob: ec15d13e2b5edbfbd76a9bcca6f8fb4c3a3cfd61 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
int cond;
int i;
int *ip;

void
test ()
{
  cond ? i : ip;	/* { dg-error "" } pointer/integer mismatch */
}