view gcc/testsuite/g++.dg/ext/conv1.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

// Test for backwards brain-damage compatibility with -fpermissive.
// { dg-options "-fpermissive -w" }

void f ();
void f (int *);
void g (int);

int main ()
{
  void *v = 1234;
  void (*p)() = v;
  int i = v;
  f (i);
  f (v);
  g (v);
  enum { a } b = i;
  void (*p2)(int) = p;
  unsigned *ip = &i;
}