aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjCXX
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-01-16 16:48:51 +0000
committerAnders Carlsson <andersca@mac.com>2009-01-16 16:48:51 +0000
commitdce5e2cabf07ff25eb4d9e1859c0a21c69f588d2 (patch)
treec7ff69f2a0de6bddc5568146a2f9f56ad0446d00 /test/SemaObjCXX
parent636c5ef6572e899d36cec1b0023fb28ba65189e1 (diff)
Use a single function for doing vararg argument promotion. Also, make sure to do the promotion before checking the type - fixes PR3340.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjCXX')
-rw-r--r--test/SemaObjCXX/vararg-non-pod.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/SemaObjCXX/vararg-non-pod.mm b/test/SemaObjCXX/vararg-non-pod.mm
index 3431dea9e5..83266381ae 100644
--- a/test/SemaObjCXX/vararg-non-pod.mm
+++ b/test/SemaObjCXX/vararg-non-pod.mm
@@ -1,5 +1,7 @@
// RUN: clang -fsyntax-only -verify %s
+extern char version[];
+
class C {
public:
C(int);
@@ -14,5 +16,6 @@ void t1(D *d)
C c(10);
[d g:10, c]; // expected-warning{{cannot pass object of non-POD type 'class C' through variadic method; call will abort at runtime}}
+ [d g:10, version];
}