]> granicus.if.org Git - clang/commitdiff
Add an unavailable __tg_promote function to attract incorrect uses of type-generic...
authorDouglas Gregor <dgregor@apple.com>
Wed, 18 Feb 2009 17:23:05 +0000 (17:23 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 18 Feb 2009 17:23:05 +0000 (17:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64919 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/tgmath.h

index cf8994fc8fdb0c170db86901877324b6cb941127..f64f117d2f26bf1482a801a18088fbef4831edb2 100644 (file)
@@ -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);