Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / format / ext-5.c
blobeebc7faa38c542ccb15178a8c11e3302877c40a7
1 /* Test for gettext default attributes. */
2 /* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3 /* { dg-do compile } */
4 /* { dg-options "-std=gnu99 -Wformat" } */
6 #include "format.h"
8 void
9 foo (int i, long l)
11 printf (gettext ("%d"), i);
12 printf (gettext ("%ld"), i); /* { dg-warning "format" "gettext" } */
13 printf (dgettext ("", "%d"), i);
14 printf (dgettext ("", "%ld"), i); /* { dg-warning "format" "dgettext" } */
15 printf (dcgettext ("", "%d", 0), i);
16 printf (dcgettext ("", "%ld", 0), i); /* { dg-warning "format" "dcgettext" } */