~ubuntu-branches/ubuntu/edgy/mcpp/edgy

« back to all changes in this revision

Viewing changes to cpp-test/test-t/e_19_3.c

  • Committer: Bazaar Package Importer
  • Author(s): NIIBE Yutaka
  • Date: 2005-04-16 15:58:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050416155816-q9a9ipx724qvf3le
Tags: 2.5-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
/* 19.3:    */
13
13
/* different token sequence     */
14
 
#define OBJ_LIKE        (0)     /* { dg-error "redefined\n\[\^ \]* this is the location | The macro is redefined" } */
 
14
#define OBJ_LIKE        (0)     /* { dg-error "redefined\n\[\^ \]*( error:|) this is the location | The macro is redefined" } */
15
15
 
16
16
/*  (1-1);  */
17
17
    OBJ_LIKE;
20
20
#undef  OBJ_LIKE
21
21
#define OBJ_LIKE        (1-1)
22
22
/* different white space        */
23
 
#define OBJ_LIKE        (1 - 1) /* { dg-error "redefined\n\[\^ \]* this is the location | The macro is redefined" } */
 
23
#define OBJ_LIKE        (1 - 1) /* { dg-error "redefined\n\[\^ \]*( error:|) this is the location | The macro is redefined" } */
24
24
 
25
25
/* 19.5:    */
26
26
/* different parameter usage    */
27
 
#define FTN_LIKE(b)     ( a )   /* { dg-error "redefined\n\[\^ \]* this is the location | The macro is redefined" } */
 
27
#define FTN_LIKE(b)     ( a )   /* { dg-error "redefined\n\[\^ \]*( error:|) this is the location | The macro is redefined" } */
28
28
 
29
29
/*  ( x );  */
30
30
    FTN_LIKE(x);
33
33
#undef  FTN_LIKE
34
34
#define FTN_LIKE(a)     ( a )
35
35
/* different parameter spelling */
36
 
#define FTN_LIKE(b)     ( b )   /* { dg-error "redefined\n\[\^ \]* this is the location | The macro is redefined" } */
 
36
#define FTN_LIKE(b)     ( b )   /* { dg-error "redefined\n\[\^ \]*( error:|) this is the location | The macro is redefined" } */
37
37
 
38
38
/* 19.7:    Not in ISO C "Examples" */
39
 
#define FTN_LIKE        OBJ_LIKE    /* { dg-error "redefined\n\[\^ \]* this is the location | The macro is redefined" } */
 
39
#define FTN_LIKE        OBJ_LIKE    /* { dg-error "redefined\n\[\^ \]*( error:|) this is the location | The macro is redefined" } */
40
40