diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-02-18 17:23:05 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-02-18 17:23:05 +0000 |
commit | c13c0125a0543f0d994b63a5c3d2474ac12d632d (patch) | |
tree | 5597e0fcc4bd6bbd9f0a3aa4aa94986e8536c959 /lib | |
parent | da425ebf61e605437e71bfb3fb626d08c8f5f590 (diff) |
Add an unavailable __tg_promote function to attract incorrect uses of type-generic macros, rom Howard Hinnant.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Headers/tgmath.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Headers/tgmath.h b/lib/Headers/tgmath.h index cf8994fc8f..f64f117d2f 100644 --- a/lib/Headers/tgmath.h +++ b/lib/Headers/tgmath.h @@ -37,6 +37,9 @@ // promotion +typedef void _Argument_type_is_not_arithmetic; +static _Argument_type_is_not_arithmetic __tg_promote(...) \ + __attribute__((__unavailable__,__overloadable__)); static double _TG_ATTRSp __tg_promote(int); static double _TG_ATTRSp __tg_promote(unsigned int); static double _TG_ATTRSp __tg_promote(long); |