]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/pr71973-2.C
d8271b1d87416680cb139e1e44fa1e469e32ec8f
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / pr71973-2.C
1 // { dg-do compile }
2 // { dg-options "-Wall -fdump-tree-eh" }
3
4 typedef __SIZE_TYPE__ size_t;
5 struct tm;
6
7 extern "C"
8 size_t strftime (char*, size_t, const char*, const struct tm*)
9 __attribute__ ((__nothrow__));
10
11 void foo () throw ()
12 {
13 strftime (0,0,0,0); // { dg-warning "null argument where non-null required" }
14 // { dg-warning "too many arguments for format" "" { target *-*-* } .-1 }
15 }
16
17 // { dg-final { scan-tree-dump-not "eh_dispatch" "eh" } }
18 // { dg-final { scan-tree-dump-not "resx" "eh" } }