8sa1-gcc/gcc/testsuite/gcc.dg/lto/pr66221_0.c
Ilya Enkovich 551dc3008c re PR middle-end/66221 (lto1: error: type variant has different TYPE_ARG_TYPES)
gcc/

	PR middle-end/66221
	* ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
	build_distinct_type_copy to copy bounds.

gcc/testsuite/

	PR middle-end/66221
	* gcc.dg/lto/pr66221_0.c: New test.
	* gcc.dg/lto/pr66221_1.c: New test.

From-SVN: r223471
2015-05-21 08:32:52 +00:00

11 lines
236 B
C

/* { dg-lto-do link } */
/* { dg-require-effective-target mpx } */
/* { dg-lto-options { { -O2 -flto -fcheck-pointer-bounds -mmpx } } } */
int test1 (const char *);
int main (int argc, const char **argv)
{
return test1 (argv[0]);
}