diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2011-03-15 12:41:45 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2011-03-15 12:41:45 +0000 |
commit | ffd6080f9e1e742c73ac38354b31c6fc4e3963ba (patch) | |
tree | 48466e94e6ae8a8f7fa50c8fcf4ffb610d6dbed1 /test/regression/sizeof2.c | |
parent | b6a2f5a9177892fa325e35a845c593902f6f203e (diff) | |
download | compcert-ffd6080f9e1e742c73ac38354b31c6fc4e3963ba.tar.gz compcert-ffd6080f9e1e742c73ac38354b31c6fc4e3963ba.zip |
Revised handling of sizeof(string-literal)
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1611 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'test/regression/sizeof2.c')
-rw-r--r-- | test/regression/sizeof2.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/regression/sizeof2.c b/test/regression/sizeof2.c new file mode 100644 index 00000000..66e38c02 --- /dev/null +++ b/test/regression/sizeof2.c @@ -0,0 +1,9 @@ +#include <stdlib.h> +#include <stdio.h> + +int main() +{ + printf("%d\n", sizeof("abcd")); + printf("%d\n", sizeof(L"abcd") / sizeof(wchar_t)); + return 0; +} |