Lines Matching defs:DiagnosticStream
69 TEST(DiagnosticStream, ConversionToResultType) {
70 // Check after the DiagnosticStream object is destroyed.
72 { value = DiagnosticStream({}, nullptr, "", SPV_ERROR_INVALID_TEXT); }
76 value = DiagnosticStream({}, nullptr, "", SPV_SUCCESS);
81 spv_result_t(DiagnosticStream({}, nullptr, "", SPV_FAILED_MATCH)));
85 DiagnosticStream,
96 // Enclose the DiagnosticStream variables in a scope to force destruction.
98 DiagnosticStream ds0({}, consumer, "", SPV_ERROR_INVALID_BINARY);
100 DiagnosticStream ds1(std::move(ds0));
107 TEST(DiagnosticStream, MoveConstructorCanBeDirectlyShiftedTo) {
117 // Enclose the DiagnosticStream variables in a scope to force destruction.
119 DiagnosticStream ds0({}, consumer, "", SPV_ERROR_INVALID_BINARY);
127 TEST(DiagnosticStream, DiagnosticFromLambdaReturnCanStillBeUsed) {
138 auto emitter = [&consumer]() -> DiagnosticStream {
139 DiagnosticStream ds0({}, consumer, "", SPV_ERROR_INVALID_BINARY);