OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [asmspecInvalid.C] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// tests that the asm directive is correctly handled for static fields
2
// in structures and classes.  This only applies to C++; such
3
// directives generate errors in C.  Assembler directives for local
4
// variables should be tested by the C test suite.
5
//
6
// Contributed by Robert Bowdidge (bowdidge@apple.com) 14 Oct 2003
7
 
8
// { dg-do compile }
9
 
10
struct Foo {
11
  // This should reference a variable called bar
12
  int i __asm__("bar");  /* { dg-error "specifiers are not permitted" } */
13
};
14
 
15
int main (void ) {
16
  int j = 0;
17
  return j;
18
}

powered by: WebSVN 2.1.0

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