Files
swift-mirror/test/Interop/Cxx/static/constexpr-static-member-var-errors.swift
zoecarver 839839f924 [cxx-interop] Rename enable-cxx-interop -> enable-experimental-cxx-interop.
Also removes the driver flag, this will now also always be guarded on `-Xfrontend`.
2022-04-07 19:15:25 -07:00

11 lines
722 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.
// 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}}
// CHECK: error: type 'int' cannot be used prior to '::' because it has no members
// CHECK: note: in instantiation of static data member 'GetTypeValueInline<int>::value' requested here