int main(void) {
  char (*(*fpa)[])();
  fpa = x();
  printf("%c\n", (*fpa)[0]());
  printf("%c\n", (*fpa)[1]());
  printf("%c\n", (*fpa)[2]());
  printf("\nPress any key to end...");
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <x@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rcx
mov    $0x0,%al
call   *(%rcx)
movsbl %al,%esi
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rcx
mov    $0x0,%al
call   *0x8(%rcx)
movsbl %al,%esi
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rcx
mov    $0x0,%al
call   *0x10(%rcx)
movsbl %al,%esi
lea    0xe6e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe64(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <x@plt>
movslq %eax,%rbx
xor    %eax,%eax
call   *(%rbx)
movsbl %al,%esi
lea    0xeb4(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   *0x8(%rbx)
movsbl %al,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   *0x10(%rbx)
movsbl %al,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe83(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%c\0A\00"
@.str.1 = [25 x i8] c"\0APress any key to end...\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [0 x i8 (...)*]*
store i32 0, i32* %1
%3 = call i32 (...) @x()
%4 = sext i32 %3 to i64
%5 = inttoptr i64 %4 to [0 x i8 (...)*]*
store [0 x i8 (...)*]* %5, [0 x i8 (...)*]** %2
%6 = load [0 x i8 (...)*]*, [0 x i8 (...)*]** %2
%7 = getelementptr inbounds [0 x i8 (...)*], [0 x i8 (...)*]* %6, i64 0, i64 0
%8 = load i8 (...)*, i8 (...)** %7
%9 = call signext i8 (...) %8()
%10 = sext i8 %9 to i32
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = load [0 x i8 (...)*]*, [0 x i8 (...)*]** %2
%13 = getelementptr inbounds [0 x i8 (...)*], [0 x i8 (...)*]* %12, i64 0, i64 1
%14 = load i8 (...)*, i8 (...)** %13
%15 = call signext i8 (...) %14()
%16 = sext i8 %15 to i32
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %16)
%18 = load [0 x i8 (...)*]*, [0 x i8 (...)*]** %2
%19 = getelementptr inbounds [0 x i8 (...)*], [0 x i8 (...)*]* %18, i64 0, i64 2
%20 = load i8 (...)*, i8 (...)** %19
%21 = call signext i8 (...) %20()
%22 = sext i8 %21 to i32
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %22)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%25 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%c\0A\00"
@.str.1 = [25 x i8] c"\0APress any key to end...\00"
define i32 @main() {
%1 = tail call i32 (...) @x()
%2 = sext i32 %1 to i64
%3 = inttoptr i64 %2 to [0 x i8 (...)*]*
%4 = getelementptr inbounds [0 x i8 (...)*], [0 x i8 (...)*]* %3, i64 0, i64 0
%5 = load i8 (...)*, i8 (...)** %4
%6 = tail call signext i8 (...) %5()
%7 = sext i8 %6 to i32
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = getelementptr inbounds [0 x i8 (...)*], [0 x i8 (...)*]* %3, i64 0, i64 1
%10 = load i8 (...)*, i8 (...)** %9
%11 = tail call signext i8 (...) %10()
%12 = sext i8 %11 to i32
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %12)
%14 = getelementptr inbounds [0 x i8 (...)*], [0 x i8 (...)*]* %3, i64 0, i64 2
%15 = load i8 (...)*, i8 (...)** %14
%16 = tail call signext i8 (...) %15()
%17 = sext i8 %16 to i32
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %17)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%20 = tail call i32 (...) @getchar()
ret i32 0
}