diff options
author | Michael Forney <mforney@mforney.org> | 2020-01-30 23:39:40 -0800 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2020-01-30 23:40:37 -0800 |
commit | 78ba6f387cddb2a9ee4f34aaef33dd080e024ce6 (patch) | |
tree | d9b5af8c9df31113853075c4eb0fa8b83a6e5459 | |
parent | 003a6cc717b12756c7f2d4ff2c757ccb8297c15c (diff) | |
download | cproc-78ba6f387cddb2a9ee4f34aaef33dd080e024ce6.tar.xz |
Add test for sizeof string literal
This was regressed in d889bc80be and fixed in 090e2932ce.
-rw-r--r-- | test/sizeof-string-literal.c | 1 | ||||
-rw-r--r-- | test/sizeof-string-literal.qbe | 1 |
2 files changed, 2 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"); diff --git a/test/sizeof-string-literal.qbe b/test/sizeof-string-literal.qbe new file mode 100644 index 0000000..23be3d8 --- /dev/null +++ b/test/sizeof-string-literal.qbe @@ -0,0 +1 @@ +export data $x = align 4 { w 4, } |