Fix ICE in get_substring_ranges_for_loc on __FILE__ (PR c++/87721)
[gcc.git] / gcc / testsuite / c-c++-common / substring-location-PR-87721.c
1 # define DBG_ERROR(dbg_logger, format, args...) if (1){\
2 char dbg_buffer[256]; \
3 __builtin_snprintf(dbg_buffer, sizeof(dbg_buffer)-1,\
4 __FILE__":%5d: " format , __LINE__ , ## args); \
5 };
6
7 void testPasswordStore1(int argc, char **argv) {
8 const char *pw1="Secret1";
9 char pw[256];
10 DBG_ERROR(0, "Bad password, expected [%s], got [%s].", pw1, pw);
11 }