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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [trad/] [assembler.S] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* Regression test - in assembly language, # may have some significance
/* Regression test - in assembly language, # may have some significance
   other than 'stringize macro argument' and therefore must be preserved
   other than 'stringize macro argument' and therefore must be preserved
   in the output, and should not be warned about.  */
   in the output, and should not be warned about.  */
/* { dg-do preprocess } */
/* { dg-do preprocess } */
#ifndef FOO
#ifndef FOO
#1                      /* Once caused a bogus unterminated #ifndef.  */
#1                      /* Once caused a bogus unterminated #ifndef.  */
#endif
#endif
#define foo() mov r0, #5  /* { dg-bogus "not followed" "spurious warning" } */
#define foo() mov r0, #5  /* { dg-bogus "not followed" "spurious warning" } */
entry:
entry:
        foo()
        foo()
/* Check we don't EOF on an unknown directive.  */
/* Check we don't EOF on an unknown directive.  */
#unknown directive
#unknown directive
#error a later diagnostic       /* { dg-error "diagnostic" } */
#error a later diagnostic       /* { dg-error "diagnostic" } */
/*
/*
   { dg-final { if ![file exists 20000510-1.i] { return }       } }
   { dg-final { if ![file exists 20000510-1.i] { return }       } }
   { dg-final { set tmp [grep 20000510-1.i # line]              } }
   { dg-final { set tmp [grep 20000510-1.i # line]              } }
   { dg-final { if {[string length $tmp] > 0} \{                } }
   { dg-final { if {[string length $tmp] > 0} \{                } }
   { dg-final {     pass "20000510-1.S: # preservation"         } }
   { dg-final {     pass "20000510-1.S: # preservation"         } }
   { dg-final { \} else \{                                      } }
   { dg-final { \} else \{                                      } }
   { dg-final {     fail "20000510-1.S: # preservation"         } }
   { dg-final {     fail "20000510-1.S: # preservation"         } }
   { dg-final { \}                                              } }
   { dg-final { \}                                              } }
*/
*/
 
 

powered by: WebSVN 2.1.0

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