Files
swift-mirror/test/Interop/Cxx/static/constexpr-static-member-var-errors.swift
Saleem Abdulrasool b039b2a836 test: correctly mark the test as XFAIL
This was happening to pass previously due to an unrelated error
matching. This corrects the XFAIL annotation to fix the test on
rebranch.
2023-09-15 15:36:07 -07:00

11 lines
672 B
Swift

// RUN: %target-swift-ide-test -print-module -module-to-print=ConstexprStaticMemberVarErrors -I %S/Inputs -source-filename=x -enable-experimental-cxx-interop 2>&1 | %FileCheck %s
// Check that we properly report the error and don't crash when importing an
// invalid decl.
// Windows doesn't fail at all here which seems ok (and probably should be the case for other platforms too).
// XFAIL: OS=windows-msvc
// CHECK: error: type 'int' cannot be used prior to '::' because it has no members
// CHECK: {{note: in instantiation of template class 'GetTypeValue<int>' requested here|note: in instantiation of static data member 'GetTypeValue<int>::value' requested here}}