"Fossies" - the Fresh Open Source Software Archive

Member "cfe-9.0.0.src/test/CodeGenCXX/mangle-lambda-explicit-template-params.cpp" (4 May 2019, 729 Bytes) of package /linux/misc/cfe-9.0.0.src.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 // RUN: %clang_cc1 -std=c++2a -triple %itanium_abi_triple -emit-llvm -o - %s -w | FileCheck %s
    2 
    3 template<class, int, class>
    4 struct DummyType { };
    5 
    6 inline void inline_func() {
    7   // CHECK: UlvE
    8   []{}();
    9 
   10   // CHECK: UlTyvE
   11   []<class>{}.operator()<int>();
   12 
   13   // CHECK: UlTyT_E
   14   []<class T>(T){}(1);
   15 
   16   // CHECK: UlTyTyT_T0_E
   17   []<class T1, class T2>(T1, T2){}(1, 2);
   18 
   19   // CHECK: UlTyTyT0_T_E
   20   []<class T1, class T2>(T2, T1){}(2, 1);
   21 
   22   // CHECK: UlTniTyTnjT0_E
   23   []<int I, class T, unsigned U>(T){}.operator()<1, int, 2>(3);
   24 
   25   // CHECK: UlTyTtTyTniTyETniTyvE
   26   []<class,
   27      template<class, int, class> class,
   28      int,
   29      class>{}.operator()<unsigned, DummyType, 5, int>();
   30 }
   31 
   32 void call_inline_func() {
   33   inline_func();
   34 }