PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / pr71973-2.C
blobd8271b1d87416680cb139e1e44fa1e469e32ec8f
1 // { dg-do compile }
2 // { dg-options "-Wall -fdump-tree-eh" }
4 typedef __SIZE_TYPE__ size_t;
5 struct tm;
7 extern "C"
8 size_t strftime (char*, size_t, const char*, const struct tm*)
9 __attribute__ ((__nothrow__));
11 void foo () throw ()
13   strftime (0,0,0,0); // { dg-warning "null argument where non-null required" }
14   // { dg-warning "too many arguments for format" "" { target *-*-* } .-1 }
17 // { dg-final { scan-tree-dump-not "eh_dispatch" "eh" } }
18 // { dg-final { scan-tree-dump-not "resx" "eh" } }