Debian Codegraph @

third_party/rust/glsl/tests/incorrect_statement.rs

raw
1 use glsl::parser::Parse;
2 use glsl::syntax;
3
4 #[test]
5 fn incorrect_statement() {
6 let r = syntax::TranslationUnit::parse(
7 "
8 int fetch_transform(int id) {
9 return id;
10 }
11
12 bool ray_plane() {
13 if 1 {
14 }
15 ",
16 );
17
18 assert!(r.is_err());
19 }