Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
      2 
      3 // CHECK:  @_ZZ4FUNCvEN4SSSSC1ERKf
      4 // CHECK: @_ZZ4FUNCvEN4SSSSC2E_0RKf
      5 // CHECK:  @_ZZ4GORFfEN4SSSSC1ERKf
      6 // CHECK: @_ZZ4GORFfEN4SSSSC2E_0RKf
      7 
      8 void FUNC ()
      9 {
     10   {
     11     float IVAR1 ;
     12 
     13     struct SSSS
     14     {
     15       float bv;
     16       SSSS( const float& from): bv(from) { }
     17     };
     18 
     19     SSSS VAR1(IVAR1);
     20    }
     21 
     22    {
     23     float IVAR2 ;
     24 
     25     struct SSSS
     26     {
     27      SSSS( const float& from) {}
     28     };
     29 
     30     SSSS VAR2(IVAR2);
     31    }
     32 }
     33 
     34 void GORF (float IVAR1)
     35 {
     36   {
     37     struct SSSS
     38     {
     39       float bv;
     40       SSSS( const float& from): bv(from) { }
     41     };
     42 
     43     SSSS VAR1(IVAR1);
     44    }
     45 
     46    {
     47     float IVAR2 ;
     48 
     49     struct SSSS
     50     {
     51      SSSS( const float& from) {}
     52     };
     53 
     54     SSSS VAR2(IVAR2);
     55    }
     56 }
     57 
     58