diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2019-12-29 20:06:32 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2020-01-02 21:06:13 +0100 |
commit | c9530b9d423b3e1b52f2fb7b3cf3376eb3044384 (patch) | |
tree | 198c81a610f75b67c5cf2202f82adde7a7696c2a | |
parent | 947a72ce3712a6901e7ddc43a50c5df40739113e (diff) | |
download | ccache-c9530b9d423b3e1b52f2fb7b3cf3376eb3044384.tar.gz |
Test .incbin detection for assembler compilation
-rw-r--r-- | test/suites/base.bash | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/suites/base.bash b/test/suites/base.bash index a8d8acdc..5df538c5 100644 --- a/test/suites/base.bash +++ b/test/suites/base.bash @@ -1060,10 +1060,11 @@ EOF fi # ------------------------------------------------------------------------- +if ! $HOST_OS_WINDOWS; then TEST ".incbin" cat <<EOF >incbin.c -char x[] = ".incbin"; +__asm__(".incbin \"/dev/null\""); EOF $CCACHE_COMPILE -c incbin.c @@ -1071,6 +1072,16 @@ EOF expect_stat 'cache miss' 0 expect_stat 'unsupported code directive' 1 + cat <<EOF >incbin.s +.incbin "/dev/null"; +EOF + + $CCACHE_COMPILE -c incbin.s + expect_stat 'cache hit (preprocessed)' 0 + expect_stat 'cache miss' 0 + expect_stat 'unsupported code directive' 2 +fi + # ------------------------------------------------------------------------- TEST "UNCACHED_ERR_FD" |