view gcc/testsuite/g++.dg/abi/empty28.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line source

// PR c++/60336
// { dg-do compile }
// { dg-options "-Wabi=12" }

struct foo
{
  int i1;
  int i2;
  int i3;
  int i4;
  int i5;
};

struct N {
  class E { };
  void fun (class E, struct foo) { } // { dg-bogus "empty" }
};


int main()
{
  struct N n;
  N::E d;
  struct foo f = { -1, -2, -3, -4, -5 };

  n.fun(d, f); // { dg-bogus "empty" }
  return 0;
}