2011-12-14 10:16:13 +08:00
|
|
|
// RUN: %clang_cc1 %s -Eonly -verify
|
2006-07-19 14:32:35 +08:00
|
|
|
|
2012-07-12 03:58:23 +08:00
|
|
|
// expected-error@9 {{EOF}}
|
2006-07-19 14:32:35 +08:00
|
|
|
#define COMM / ## *
|
2011-12-14 10:16:13 +08:00
|
|
|
COMM // expected-error {{pasting formed '/*', an invalid preprocessing token}}
|
2006-07-19 14:32:35 +08:00
|
|
|
|
2012-06-14 03:02:56 +08:00
|
|
|
// Demonstrate that an invalid preprocessing token
|
|
|
|
// doesn't swallow the rest of the file...
|
2012-07-12 03:58:23 +08:00
|
|
|
#error EOF
|