mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Rename @extern to @cname, deprecating the old name #2493.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// #target: macos-x64
|
||||
module test;
|
||||
|
||||
extern const int FOO @extern("foo1");
|
||||
extern const int FOO @cname("foo1");
|
||||
fn int main()
|
||||
{
|
||||
return FOO;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// #target: macos-x64
|
||||
module foo;
|
||||
|
||||
int baz @extern("foobar") = 123;
|
||||
int baz @cname("foobar") = 123;
|
||||
|
||||
/* #expect: foo.ll
|
||||
|
||||
|
||||
Reference in New Issue
Block a user