summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/extern-abi-string-escaping.rs
blob: 87bd31aabb67de05a31f9b78219bb7b9774c654c (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 escapes.

fn main() {}

extern "\x43" fn foo() {}

extern "\x43" {
    fn bar();
}

type T = extern "\x43" fn();