summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/extern-abi-raw-strings.rs
blob: fad855a21f6b1b92a3c1ae9478ae70c6fb9b3461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// check-pass

// Check that the string literal in `extern lit` will accept raw strings.

fn main() {}

extern r#"C"# fn foo() {}

extern r#"C"# {
    fn bar();
}

type T = extern r#"C"# fn();