[testsuite] Check target alias in builtin-has-attribute-3.c
authorTom de Vries <tdevries@suse.de>
Thu, 24 Sep 2020 06:02:29 +0000 (08:02 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 24 Sep 2020 06:26:35 +0000 (08:26 +0200)
commit2d5fb576bdda843da47aea2e025bb5d45e883827
tree049748bcb734c8227029d8c360ecf0b706ea38e0
parent5427bd4d57c0376e51fc7b256e76aa46c43aa8cf
[testsuite] Check target alias in builtin-has-attribute-3.c

When running test-case c-c++-common/builtin-has-attribute-3.c on nvptx, I get:
...
FAIL: c-c++-common/builtin-has-attribute-3.c  -Wc++-compat \
  (test for excess errors)
Excess errors:
src/gcc/testsuite/c-c++-common/builtin-has-attribute-3.c:33:33: error: \
  alias definitions not supported in this configuration
...

Fix this by adding -DSKIP_ALIAS to the compilation options for effective
target ! alias.

Tested on nvptx.

gcc/testsuite/ChangeLog:

* c-c++-common/builtin-has-attribute-3.c: Compile with -DSKIP_ALIAS
for effective target ! alias.
gcc/testsuite/c-c++-common/builtin-has-attribute-3.c