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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [charset/] [asm2.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* Test for execution character set encoding errors.
2
   If we ever get a good way to test error recovery
3
   the string "foobar" should be translated.  */
4
/* { dg-do compile } */
5
/* { dg-require-iconv "IBM1047" } */
6
asm (not_a_string); /* { dg-error "(parse error|syntax error|expected string literal) before" "not_a_string" } */
7
char x[] = "foobar";
8
 
9
void foo (void)
10
{
11
  char *y;
12
  asm (not_a_string2); /* { dg-error "(parse error|syntax error|expected string literal) before" "not_a_string" } */
13
 
14
#define FOO "walrus"
15
  y = FOO;
16
}

powered by: WebSVN 2.1.0

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