| 1 |
/* Example of a one-line C-style comment. */ |
| 2 |
#if 0 |
| 3 |
{ dg-message "1: got C-style comment; length=45" "" { target *-*-* } .-2 } |
| 4 |
{ dg-begin-multiline-output "" } |
| 5 |
stripped content of comment: > Example of a one-line C-style comment. < |
| 6 |
{ dg-end-multiline-output "" } |
| 7 |
#endif |
| 8 |
|
| 9 |
/*Another example of a one-line C-style comment.*/ |
| 10 |
#if 0 |
| 11 |
{ dg-message "6: got C-style comment; length=50" "" { target *-*-* } .-2 } |
| 12 |
{ dg-begin-multiline-output "" } |
| 13 |
stripped content of comment: >Another example of a one-line C-style comment.< |
| 14 |
{ dg-end-multiline-output "" } |
| 15 |
#endif |
| 16 |
|
| 17 |
/**/ |
| 18 |
#if 0 |
| 19 |
{ dg-message "1: got C-style comment; length=4" "" { target *-*-* } .-2 } |
| 20 |
{ dg-begin-multiline-output "" } |
| 21 |
stripped content of comment: >< |
| 22 |
{ dg-end-multiline-output "" } |
| 23 |
#endif |
| 24 |
|
| 25 |
/* Example of a |
| 26 |
multi-line C-style comment. */ |
| 27 |
#if 0 |
| 28 |
{ dg-message "1: got C-style comment; length=50" "" { target *-*-* } .-3 } |
| 29 |
{ dg-begin-multiline-output "" } |
| 30 |
stripped content of comment: > Example of a |
| 31 |
multi-line C-style comment. < |
| 32 |
{ dg-end-multiline-output "" } |
| 33 |
#endif |
| 34 |
|
| 35 |
// Example of a C++-style comment |
| 36 |
#if 0 |
| 37 |
{ dg-message "1: got C\\+\\+-style comment; length=33" "" { target *-*-* } .-2 } |
| 38 |
{ dg-begin-multiline-output "" } |
| 39 |
stripped content of comment: > Example of a C++-style comment< |
| 40 |
{ dg-end-multiline-output "" } |
| 41 |
#endif |
| 42 |
|
| 43 |
// |
| 44 |
#if 0 |
| 45 |
{ dg-message "1: got C\\+\\+-style comment; length=2" "" { target *-*-* } .-2 } |
| 46 |
{ dg-begin-multiline-output "" } |
| 47 |
stripped content of comment: >< |
| 48 |
{ dg-end-multiline-output "" } |
| 49 |
#endif |