view gcc/testsuite/g++.target/nios2/hello-pie.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

// { dg-do run { target *-*-linux* } }
// { dg-options "-pie -fpie" }
// { dg-output "Hello, pie World" }

// This test used to give an "FDE encoding" error from the linker due to
// the ABI not having appropriate relocations for PIE.

#include <iostream>

int
main ()
{
  std::cout << "Hello, pie World" << std::endl;
}