aboutsummaryrefslogtreecommitdiff
path: root/test/sizeof-string-literal.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-01-30 23:39:40 -0800
committerMichael Forney <mforney@mforney.org>2020-01-30 23:40:37 -0800
commit78ba6f387cddb2a9ee4f34aaef33dd080e024ce6 (patch)
treed9b5af8c9df31113853075c4eb0fa8b83a6e5459 /test/sizeof-string-literal.c
parent003a6cc717b12756c7f2d4ff2c757ccb8297c15c (diff)
Add test for sizeof string literal
This was regressed in d889bc80be and fixed in 090e2932ce.
Diffstat (limited to 'test/sizeof-string-literal.c')
-rw-r--r--test/sizeof-string-literal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/sizeof-string-literal.c b/test/sizeof-string-literal.c
new file mode 100644
index 0000000..9042d82
--- /dev/null
+++ b/test/sizeof-string-literal.c
@@ -0,0 +1 @@
+int x = sizeof("abc");