summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-member-template.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-12-22 07:24:36 +0000
committerDouglas Gregor <dgregor@apple.com>2009-12-22 07:24:36 +0000
commit96596c98fbb584d8c9eec99d0a1c0734da756787 (patch)
tree4cc2aa0da213cc084b87ef78df8bc359440a0d8e /clang/test/SemaTemplate/instantiate-member-template.cpp
parent778f92ab024794d6751a30dfbe59852fd0d0522c (diff)
downloadbcm5719-llvm-96596c98fbb584d8c9eec99d0a1c0734da756787.tar.gz
bcm5719-llvm-96596c98fbb584d8c9eec99d0a1c0734da756787.zip
Switch initialization of parameters in a call over to
InitializationSequence (when a FunctionDecl is present). This required a few small fixes to initialization sequences: - Make sure to use the adjusted parameter type for initialization of function parameters. - Implement transparent union calling semantics in C llvm-svn: 91902
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-member-template.cpp')
-rw-r--r--clang/test/SemaTemplate/instantiate-member-template.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaTemplate/instantiate-member-template.cpp b/clang/test/SemaTemplate/instantiate-member-template.cpp
index 2b5ba5c891e..b4f0a9c6509 100644
--- a/clang/test/SemaTemplate/instantiate-member-template.cpp
+++ b/clang/test/SemaTemplate/instantiate-member-template.cpp
@@ -90,7 +90,7 @@ void test_X1(int *ip, int i, double *dp) {
X1<int*>::Inner3<int> id3;
id3.f0(ip, i);
- id3.f0(dp, i); // expected-error{{incompatible type}}
+ id3.f0(dp, i); // expected-error{{cannot initialize a parameter of type 'int *' with an lvalue of type 'double *'}}
id3.f1(ip, i, ip);
id3.f1(ip, i, dp); // expected-note{{instantiation}}
OpenPOWER on IntegriCloud