28 lines
628 B
C
28 lines
628 B
C
|
// RUN: %clang_cc1 -fsyntax-only %s -Winvalid-utf8 -verify=expected
|
|||
|
// RUN: %clang_cc1 -fsyntax-only %s -verify=nowarn
|
|||
|
// nowarn-no-diagnostics
|
|||
|
|
|||
|
// This file is purposefully encoded as windows-1252
|
|||
|
// be careful when modifying.
|
|||
|
|
|||
|
//<2F>
|
|||
|
// expected-warning@-1 {{invalid UTF-8 in comment}}
|
|||
|
|
|||
|
// <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20> <20> <20>
|
|||
|
// expected-warning@-1 6{{invalid UTF-8 in comment}}
|
|||
|
|
|||
|
/*<2A>*/
|
|||
|
// expected-warning@-1 {{invalid UTF-8 in comment}}
|
|||
|
|
|||
|
/*<2A> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20> <20> <20>*/
|
|||
|
// expected-warning@-1 6{{invalid UTF-8 in comment}}
|
|||
|
|
|||
|
/*
|
|||
|
<EFBFBD>
|
|||
|
*/
|
|||
|
// expected-warning@-2 {{invalid UTF-8 in comment}}
|
|||
|
|
|||
|
// abcd
|
|||
|
// <20>abcd
|
|||
|
// expected-warning@-1 {{invalid UTF-8 in comment}}
|