1 ; RUN: not opt -passes=verify %s 2>&1 | FileCheck %s
3 target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
4 target triple = "x86_64-pc-windows-gnu"
6 ; CHECK: dllexport GlobalValue must have default or protected visibility
7 ; CHECK-NEXT: ptr @dllexport_hidden
8 declare hidden dllexport i32 @dllexport_hidden()
9 declare protected dllexport i32 @dllexport_protected()
11 ; CHECK-NEXT: dllimport GlobalValue must have default visibility
12 ; CHECK-NEXT: ptr @dllimport_hidden
13 declare hidden dllimport i32 @dllimport_hidden()
14 ; CHECK-NEXT: dllimport GlobalValue must have default visibility
15 ; CHECK-NEXT: ptr @dllimport_protected
16 declare protected dllimport i32 @dllimport_protected()