aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/empty15.C
blob: ac0a8681dc99a7c3947386c9914c1f12a799580a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/60336
// { dg-do run }
// { dg-options "-Wabi=9 -x c" }
// { dg-additional-sources "empty15a.c" }
// { dg-prune-output "command line option" }

#include "empty15.h"
extern "C" void fun(struct dummy, struct foo);

int main()
{
  struct dummy d;
  struct foo f = { -1, -2, -3, -4, -5 };

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