Home | History | Annotate | Line # | Download | only in indent
      1 /* $NetBSD: lex_char.c,v 1.4 2022/04/24 09:04:12 rillig Exp $ */
      2 
      3 /*
      4  * Test lexing of character constants.
      5  */
      6 
      7 //indent input
      8 int simple = 'x';
      9 int multi = 'xy';
     10 int empty = '';
     11 int null = '\0';
     12 int escape_hex = '\x3f';
     13 int escape_octal = '\040';
     14 int escape_a = '\a';
     15 int escape_b = '\b';
     16 int escape_f = '\f';
     17 int escape_n = '\n';
     18 int escape_t = '\t';
     19 int escape_v = '\v';
     20 int escape_single_quote = '\'';
     21 int escape_double_quote = '\"';
     22 int escape_backslash = '\\';
     23 int line_break_before = '\
     24 x';
     25 int line_break_after = 'x\
     26 ';
     27 //indent end
     28 
     29 //indent run-equals-input -di0
     30