Lines Matching defs:diagnostic
27 // Returns a newly created diagnostic value.
30 spv_diagnostic diagnostic = spvDiagnosticCreate(&position, "");
31 EXPECT_NE(nullptr, diagnostic);
32 return diagnostic;
38 spv_diagnostic diagnostic = MakeValidDiagnostic();
39 spvDiagnosticDestroy(diagnostic);
40 // We aren't allowed to use the diagnostic pointer anymore.
45 spv_diagnostic diagnostic = MakeValidDiagnostic();
47 EXPECT_TRUE(diagnostic != second_diagnostic);
48 spvDiagnosticDestroy(diagnostic);
49 diagnostic = second_diagnostic;
50 spvDiagnosticDestroy(diagnostic);
55 spv_diagnostic_t diagnostic = {{2, 3, 5}, message};
57 ASSERT_EQ(SPV_SUCCESS, spvDiagnosticPrint(&diagnostic));
66 // TODO(dneto): We should be able to redirect the diagnostic printing.
67 // Once we do that, we can test diagnostic corner cases.