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