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

« back to all changes in this revision

Viewing changes to cpp-test/test-t/n_24.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:
12
12
    str(    ab  /* comment */   +
13
13
        cd  );
14
14
 
 
15
/* 24.5:    Token separator inserted by macro expansion should be removed.
 
16
        (Meanwhile, tokens should not be merged.  See 21.2.)    */
 
17
#define xstr( a)    str( a)
 
18
#define f(a)        a
 
19
/*  "x-y";  */
 
20
    xstr( x-f(y));
 
21
 
15
22
/* { dg-do preprocess }
16
23
   { dg-final { if ![file exist n_24.i] { return }                      } }
17
24
   { dg-final { if \{ [grep n_24.i "\"a\\+b\""] != ""           \} \{   } }
18
25
   { dg-final { if \{ [grep n_24.i "\"ab \\+ cd\""] != ""       \} \{   } }
19
 
   { dg-final { return \} \}                                            } }
 
26
   { dg-final { if \{ [grep n_24.i "\"x-y\""] != ""             \} \{   } }
 
27
   { dg-final { return \} \} \}                                         } }
20
28
   { dg-final { fail "n_24.c: #operator"                                } }
21
29
 */
22
30