summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/empty14.C
blob: 48ee1f845e6b894e1cdd3e4c86c4ccfe8d313af0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/60336
// { dg-do run { target i?86-*-* x86_64-*-* } }
// { dg-options "-x c" }
// { dg-additional-sources "empty14a.c" }
// { dg-prune-output "command line option" }

#include "empty14.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-message "note: the ABI of passing empty record has changed in GCC 6" }
  return 0;
}