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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 689 jeremybenn
/* Test for scanf formats.  %a extensions.  */
2
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3
/* { dg-do compile } */
4
/* { dg-options "-std=gnu89 -Wformat" } */
5
 
6
#include "format.h"
7
 
8
void
9
foo (char **sp, wchar_t **lsp)
10
{
11
  /* %a formats for allocation, only recognized in C90 mode, are a
12
     GNU extension.  Followed by other characters, %a is not treated
13
     specially.
14
  */
15
  scanf ("%as", sp);
16
  scanf ("%aS", lsp);
17
  scanf ("%a[bcd]", sp);
18
}

powered by: WebSVN 2.1.0

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