tests/indent: test identifiers containing '$'
This commit is contained in:
parent
e0e63425f4
commit
2fc6abafb0
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: token_ident.c,v 1.1 2021/10/18 18:10:20 rillig Exp $ */
|
||||
/* $NetBSD: token_ident.c,v 1.2 2021/11/07 19:25:26 rillig Exp $ */
|
||||
/* $FreeBSD$ */
|
||||
|
||||
/*
|
||||
|
@ -62,3 +62,18 @@ t(void)
|
|||
x._y = 5;
|
||||
}
|
||||
#indent end
|
||||
|
||||
|
||||
/*
|
||||
* Test identifiers containing '$', which some compilers support as an
|
||||
* extension to the C standard.
|
||||
*/
|
||||
#indent input
|
||||
int $ = jQuery; // just kidding
|
||||
const char SYS$LOGIN[]="$HOME";
|
||||
#indent end
|
||||
|
||||
#indent run
|
||||
int $ = jQuery; // just kidding
|
||||
const char SYS$LOGIN[] = "$HOME";
|
||||
#indent end
|
||||
|
|
Loading…
Reference in New Issue