diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-05-18 00:16:51 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-05-18 00:16:51 +0000 |
| commit | 1997856936b05f861580464238f104b1c9050267 (patch) | |
| tree | 2f383b2b074f2a40d0eb6d952c88cdb0ce4ff019 /clang/test/PCH/attrs.c | |
| parent | 14d1cb226c28d1ba49f535d780adeed2c9b73876 (diff) | |
| download | bcm5719-llvm-1997856936b05f861580464238f104b1c9050267.tar.gz bcm5719-llvm-1997856936b05f861580464238f104b1c9050267.zip | |
Fix use-after-free ASan failures for modules / PCH files that deserialize abi_tag or no_sanitize attributes.
llvm-svn: 269869
Diffstat (limited to 'clang/test/PCH/attrs.c')
| -rw-r--r-- | clang/test/PCH/attrs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/PCH/attrs.c b/clang/test/PCH/attrs.c index 6a4b8f667cb..5b706804607 100644 --- a/clang/test/PCH/attrs.c +++ b/clang/test/PCH/attrs.c @@ -9,10 +9,12 @@ #define HEADER int f(int) __attribute__((visibility("default"), overloadable)); +int g(int) __attribute__((abi_tag("foo", "bar", "baz"), no_sanitize("address", "memory"))); // expected-warning {{ignored}} #else double f(double); // expected-error{{overloadable}} // expected-note@11{{previous overload}} +void h() { g(0); } #endif |

