Commit 0e535442 by Jakub Jelinek Committed by Jakub Jelinek

source_date_epoch-1.c (main): Test __DATE__ and __TIME__ strings with…

source_date_epoch-1.c (main): Test __DATE__ and __TIME__ strings with __builtin_strcmp instead of printf and...

	* 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
parent 4a235312
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.
......
......@@ -2,10 +2,10 @@
/* { 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$" } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment