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

Side by Side Diff: test/CodeGenCXX/mangle-exprs.cpp

Issue 2954043003: Cherry-pick upstream r237929 (Closed)
Patch Set: Created 3 years, 6 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 | « lib/AST/ItaniumMangle.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // RUN: %clang_cc1 -std=c++11 -emit-llvm %s -o - -triple=x86_64-apple-darwin9 | FileCheck %s 1 // RUN: %clang_cc1 -std=c++11 -emit-llvm %s -o - -triple=x86_64-apple-darwin9 | FileCheck %s
2 2
3 namespace std { 3 namespace std {
4 typedef decltype(sizeof(int)) size_t; 4 typedef decltype(sizeof(int)) size_t;
5 5
6 // libc++'s implementation 6 // libc++'s implementation
7 template <class _E> 7 template <class _E>
8 class initializer_list 8 class initializer_list
9 { 9 {
10 const _E* __begin_; 10 const _E* __begin_;
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 fC1(1); // CHECK-LABEL: define {{.*}} @_ZN5test73fC1IiEEDTcmtlNS_1CEilLi1ELi 2EEEcvT__EES2_ 322 fC1(1); // CHECK-LABEL: define {{.*}} @_ZN5test73fC1IiEEDTcmtlNS_1CEilLi1ELi 2EEEcvT__EES2_
323 fC2(1); // CHECK-LABEL: define {{.*}} @_ZN5test73fC2IiEEDTcmcvNS_1CEilLi1ELi 2EEcvT__EES2_ 323 fC2(1); // CHECK-LABEL: define {{.*}} @_ZN5test73fC2IiEEDTcmcvNS_1CEilLi1ELi 2EEcvT__EES2_
324 fD1(1); // CHECK-LABEL: define {{.*}} @_ZN5test73fD1IiEEDTcmtlNS_1DEL_ZNS_1b EEEcvT__EES2_ 324 fD1(1); // CHECK-LABEL: define {{.*}} @_ZN5test73fD1IiEEDTcmtlNS_1DEL_ZNS_1b EEEcvT__EES2_
325 fD2(1); // CHECK-LABEL: define {{.*}} @_ZN5test73fD2IiEEDTcmcvNS_1DEL_ZNS_1b EEcvT__EES2_ 325 fD2(1); // CHECK-LABEL: define {{.*}} @_ZN5test73fD2IiEEDTcmcvNS_1DEL_ZNS_1b EEcvT__EES2_
326 fE1(1); // CHECK-LABEL: define {{.*}} @_ZN5test73fE1IiEEDTcmtlNS_1EELi1ELi2E EcvT__EES2_ 326 fE1(1); // CHECK-LABEL: define {{.*}} @_ZN5test73fE1IiEEDTcmtlNS_1EELi1ELi2E EcvT__EES2_
327 fE2(1); // CHECK-LABEL: define {{.*}} @_ZN5test73fE2IiEEDTcmcvNS_1EEilLi1ELi 2EEcvT__EES2_ 327 fE2(1); // CHECK-LABEL: define {{.*}} @_ZN5test73fE2IiEEDTcmcvNS_1EEilLi1ELi 2EEcvT__EES2_
328 fF1(1); // CHECK-LABEL: define {{.*}} @_ZN5test73fF1IiEEDTcmtlNS_1FEilLi1ELi 2EEEcvT__EES2_ 328 fF1(1); // CHECK-LABEL: define {{.*}} @_ZN5test73fF1IiEEDTcmtlNS_1FEilLi1ELi 2EEEcvT__EES2_
329 fF2(1); // CHECK-LABEL: define {{.*}} @_ZN5test73fF2IiEEDTcmcvNS_1FEilLi1ELi 2EEcvT__EES2_ 329 fF2(1); // CHECK-LABEL: define {{.*}} @_ZN5test73fF2IiEEDTcmcvNS_1FEilLi1ELi 2EEcvT__EES2_
330 } 330 }
331 } 331 }
332
333
334 namespace test8 {
335 template <class>
336 struct X {
337 template<typename T> T foo() const { return 0; }
338 template <class T> auto bar() const -> decltype(foo<T>()) { return 0; }
339 };
340
341 // CHECK-LABEL: define weak_odr i32 @_ZNK5test81XIiE3barIiEEDTcl3fooIT_EEEv
342 template int X<int>::bar<int>() const;
343 }
OLDNEW
« no previous file with comments | « lib/AST/ItaniumMangle.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698