1// RUN: %clang_cc1 -fsyntax-only -verify %s 2// RUN: %clang_cc1 -E -DPP_ONLY=1 %s -o %t 3// RUN: FileCheck --strict-whitespace --input-file=%t %s 4 5// This file contains Unicode characters; please do not "fix" them! 6 7extern int x; // expected-warning {{treating Unicode character as whitespace}} 8extern int x; // expected-warning {{treating Unicode character as whitespace}} 9 10// CHECK: extern int {{x}} 11// CHECK: extern int {{x}} 12 13#pragma mark ¡Unicode! 14 15#define COPYRIGHT Copyright © 2012 16#define XSTR(X) #X 17#define STR(X) XSTR(X) 18 19static const char *copyright = STR(COPYRIGHT); // no-warning 20// CHECK: static const char *copyright = "Copyright © {{2012}}"; 21 22#if PP_ONLY 23COPYRIGHT 24// CHECK: Copyright © {{2012}} 25CHECK: The preprocessor should not complain about Unicode characters like ©. 26#endif 27