gcc/testsuite/c-c++-common/wdate-time.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Wdate-time" } */ |
| 3 | |
| 4 | const char time[] = __TIME__; /* { dg-warning "might prevent reproducible builds" } */ |
| 5 | const char date[] = __DATE__; /* { dg-warning "might prevent reproducible builds" } */ |
| 6 | const char timestamp[] = __TIMESTAMP__; /* { dg-warning "might prevent reproducible builds" } */ |