diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/warn/pragma-system_header2.C')
-rw-r--r-- | gcc/testsuite/g++.dg/warn/pragma-system_header2.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/warn/pragma-system_header2.C b/gcc/testsuite/g++.dg/warn/pragma-system_header2.C new file mode 100644 index 000000000..a39bea721 --- /dev/null +++ b/gcc/testsuite/g++.dg/warn/pragma-system_header2.C @@ -0,0 +1,17 @@ +// PR c++/30500 +// { dg-options "-Wconversion" } + +#include "pragma-system_header2.h" + + +void f() +{ + g<int>(); + h<int>(); +} + +// { dg-warning "conversion" "" { target *-*-* } 2 } +// { dg-warning "conversion" "" { target *-*-* } 5 } + +// I couldn't find another way to make this work. +// { dg-prune-output "In file included from" } |