* gcc.dg/cpp/source_date_epoch-1.c (main): Test __DATE__ and
__TIME__ strings with __builtin_strcmp instead of printf and
dg-output.
From-SVN: r237039
+2016-06-02 Jakub Jelinek <jakub@redhat.com>
+
+ * gcc.dg/cpp/source_date_epoch-1.c (main): Test __DATE__ and
+ __TIME__ strings with __builtin_strcmp instead of printf and
+ dg-output.
+
2016-06-02 Martin Liska <mliska@suse.cz>
* gcc.dg/predict-9.c: New test.
/* { dg-set-compiler-env-var SOURCE_DATE_EPOCH "630333296" } */
int
-main(void)
+main ()
{
- __builtin_printf ("%s %s\n", __DATE__, __TIME__);
+ if (__builtin_strcmp (__DATE__, "Dec 22 1989") != 0
+ || __builtin_strcmp (__TIME__, "12:34:56") != 0)
+ __builtin_abort ();
return 0;
}
-
-/* { dg-output "^Dec 22 1989 12:34:56\n$" } */