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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [format/] [ms_c90-strftime-2.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* Test for strftime formats.  Rejection of formats using C99 features in
2
   pedantic C90 mode.  */
3
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
4
/* { dg-do compile { target { *-*-mingw* } } } */
5
/* { dg-options "-std=iso9899:1990 -pedantic -Wformat -Wformat-y2k" } */
6
 
7
#define USE_SYSTEM_FORMATS
8
#include "format.h"
9
 
10
void
11
foo (char *s, size_t m, const struct tm *tp)
12
{
13
  strftime (s, m, "%C", tp); /* { dg-warning "format" "%C is unsupported" } */
14
  strftime (s, m, "%D", tp); /* { dg-warning "format" "%D is unsupported" } */
15
  strftime (s, m, "%e", tp); /* { dg-warning "format" "%e is unsupported" } */
16
  strftime (s, m, "%F", tp); /* { dg-warning "format" "%F is unsupported" } */
17
  strftime (s, m, "%g", tp); /* { dg-warning "format" "%g is unsupported" } */
18
  strftime (s, m, "%G", tp); /* { dg-warning "format" "%G is unsupported" } */
19
  strftime (s, m, "%h", tp); /* { dg-warning "format" "%h is unsupported" } */
20
  strftime (s, m, "%n", tp); /* { dg-warning "format" "%n is unsupported" } */
21
  strftime (s, m, "%r", tp); /* { dg-warning "format" "%r is unsupported" } */
22
  strftime (s, m, "%R", tp); /* { dg-warning "format" "%R is unsupported" } */
23
  strftime (s, m, "%t", tp); /* { dg-warning "format" "%t is unsupported" } */
24
  strftime (s, m, "%T", tp); /* { dg-warning "format" "%T is unsupported" } */
25
  strftime (s, m, "%u", tp); /* { dg-warning "format" "%u is unsupported" } */
26
  strftime (s, m, "%V", tp); /* { dg-warning "format" "%V is unsupported" } */
27
  strftime (s, m, "%z", tp); /* { dg-warning "C" "%z not in C90" } */
28
}

powered by: WebSVN 2.1.0

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