about summary refs log tree commit diff homepage
path: root/test/Feature
diff options
context:
space:
mode:
Diffstat (limited to 'test/Feature')
-rw-r--r--test/Feature/Alias.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Feature/Alias.c b/test/Feature/Alias.c
index 09abb3e0..f83652d8 100644
--- a/test/Feature/Alias.c
+++ b/test/Feature/Alias.c
@@ -10,6 +10,10 @@
 int b = 52;
 extern int a __attribute__((alias("b")));
 
+// alias for alias
+// NOTE: this does not have to be before foo is known
+extern int foo2() __attribute__((alias("foo")));
+
 // alias for function
 int __foo() { return 52; }
 extern int foo() __attribute__((alias("__foo")));
@@ -19,6 +23,7 @@ int *c = &a;
 int main() {
   assert(a == 52);
   assert(foo() == 52);
+  assert(foo2() == 52);
   assert(*c == 52);
 
   return 0;