Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Lexer / block_cmt_end.c
blob27c6aa8d2fda48f29bbab3f5a5e6288108c89f21
1 /*
2 RUN: %clang_cc1 -E -ftrigraphs %s | grep bar
3 RUN: %clang_cc1 -E -ftrigraphs %s | grep foo
4 RUN: %clang_cc1 -E -ftrigraphs %s | not grep qux
5 RUN: %clang_cc1 -E -ftrigraphs %s | not grep xyz
6 RUN: %clang_cc1 -fsyntax-only -ftrigraphs -verify %s
7 */
9 // This is a simple comment, /*/ does not end a comment, the trailing */ does.
10 int i = /*/ */ 1;
12 /* qux
14 next comment ends with normal escaped newline:
17 /* expected-warning {{escaped newline}} expected-warning {{backslash and newline}} *\
20 int bar /* expected-error {{expected ';' after top level declarator}} */
22 /* xyz
24 next comment ends with a trigraph escaped newline: */
26 /* expected-warning {{escaped newline between}} expected-warning {{backslash and newline separated by space}} expected-warning {{trigraph ends block comment}} *??/
29 foo
32 // We should not get warnings about trigraphs in comments:
33 // '????'
34 /* ???? */
36 // PR50456: multiple escaped newlines in one */.
39 ??/
40 ??/
43 // expected-warning@-5 {{escaped newline}}
44 // expected-warning@-4 {{separated by space}}
45 // expected-warning@-6 {{trigraph ends block comment}}