OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [format/] [ext-5.c] - Blame information for rev 701

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* Test for gettext default attributes.  */
2
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3
/* { dg-do compile } */
4
/* { dg-options "-std=gnu99 -Wformat" } */
5
 
6
#include "format.h"
7
 
8
void
9
foo (int i, long l)
10
{
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" } */
17
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.