1  /* { dg-do compile } */
       2  /* { dg-require-effective-target lto } */
       3  /* { dg-options "-O2 -flive-patching=inline-only-static -flto" } */
       4  
       5  int main()
       6  {
       7    return 0;
       8  }
       9  
      10  /* { dg-message "sorry, unimplemented: live patching \\(with 'inline-only-static'\\) is not supported with LTO" "-flive-patching and -flto together" { target *-*-* } 0 } */