Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: test/SemaCXX/cxx11-inheriting-ctors.cpp

Issue 184973004: Prep for merging 3.4: Undo changes from 3.3 branch (Closed) Base URL: http://git.chromium.org/native_client/pnacl-clang.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/Preprocessor/init.c ('k') | tools/clang-format/clang-format.el » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // RUN: %clang_cc1 -std=c++11 %s -verify
2
3 // expected-no-diagnostics
4
5 namespace PR15757 {
6 struct S {
7 };
8
9 template<typename X, typename Y> struct T {
10 template<typename A> T(X x, A &&a) {}
11
12 template<typename A> explicit T(A &&a)
13 noexcept(noexcept(T(X(), static_cast<A &&>(a))))
14 : T(X(), static_cast<A &&>(a)) {}
15 };
16
17 template<typename X, typename Y> struct U : T<X, Y> {
18 using T<X, Y>::T;
19 };
20
21 U<S, char> foo(char ch) { return U<S, char>(ch); }
22
23 int main() {
24 U<S, int> a(42);
25 U<S, char> b('4');
26 return 0;
27 }
28 }
OLDNEW
« no previous file with comments | « test/Preprocessor/init.c ('k') | tools/clang-format/clang-format.el » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698