aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/gdc194.d
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2022-06-15 22:51:52 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2022-06-15 23:16:21 +0200
commit90f2a111413a6d4264335046d68ffa19725864b6 (patch)
tree566e5fee798421401ae158412b179351a25e7c52 /gcc/testsuite/gdc.dg/gdc194.d
parentdc9b92facf87a6f2d8b0e5d5fc404f30c3b15a74 (diff)
downloadgcc-90f2a111413a6d4264335046d68ffa19725864b6.zip
gcc-90f2a111413a6d4264335046d68ffa19725864b6.tar.gz
gcc-90f2a111413a6d4264335046d68ffa19725864b6.tar.bz2
d: Add `@no_sanitize' attribute to compiler and library.
The `@no_sanitize' attribute disables a particular sanitizer for this function, analogous to `__attribute__((no_sanitize))'. The library also defines `@noSanitize' to be compatible with the LLVM D compiler's `ldc.attributes'. gcc/d/ChangeLog: * d-attribs.cc (d_langhook_attribute_table): Add no_sanitize. (d_handle_no_sanitize_attribute): New function. libphobos/ChangeLog: * libdruntime/gcc/attributes.d (no_sanitize): Define. (noSanitize): Define. gcc/testsuite/ChangeLog: * gdc.dg/asan/attr_no_sanitize1.d: New test. * gdc.dg/ubsan/attr_no_sanitize2.d: New test.
Diffstat (limited to 'gcc/testsuite/gdc.dg/gdc194.d')
0 files changed, 0 insertions, 0 deletions