1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple i686-windows-msvc -emit-llvm -std=c++1y -O1 -disable-llvm-optzns -o - %s | FileCheck %s --check-prefix=MSVC 2*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple i686-windows-gnu -emit-llvm -std=c++1y -O1 -disable-llvm-optzns -o - %s | FileCheck %s --check-prefix=GNU 3*0a6a1f1dSLionel Sambuc 4*0a6a1f1dSLionel Sambuc struct __declspec(dllimport) S { fS5*0a6a1f1dSLionel Sambuc virtual void f() {} 6*0a6a1f1dSLionel Sambuc } s; 7*0a6a1f1dSLionel Sambuc // MSVC-DAG: @"\01??_7S@@6B@" = available_externally dllimport 8*0a6a1f1dSLionel Sambuc // MSVC-DAG: @"\01??_R0?AUS@@@8" = linkonce_odr 9*0a6a1f1dSLionel Sambuc // MSVC-DAG: @"\01??_R1A@?0A@EA@S@@8" = linkonce_odr 10*0a6a1f1dSLionel Sambuc // MSVC-DAG: @"\01??_R2S@@8" = linkonce_odr 11*0a6a1f1dSLionel Sambuc // MSVC-DAG: @"\01??_R3S@@8" = linkonce_odr 12*0a6a1f1dSLionel Sambuc 13*0a6a1f1dSLionel Sambuc // GNU-DAG: @_ZTV1S = available_externally dllimport 14*0a6a1f1dSLionel Sambuc // GNU-DAG: @_ZTI1S = external dllimport 15*0a6a1f1dSLionel Sambuc 16*0a6a1f1dSLionel Sambuc struct U : S { 17*0a6a1f1dSLionel Sambuc } u; 18