# Check that %#M and %#m within printf work correctly.

set test "print_user_buffer"
set srcfile "$srcdir/$subdir/$test.c"
set exefile "[pwd]/$test.exe"
set test_flags "additional_flags=-g"
set res [target_compile "$srcfile" "$exefile" executable "$test_flags"]

if { $res != ""} {
  verbose "target_compile failed: $res" 2
  fail "$test compile"
  untested "$test"
  return
} else {
  pass "$test compile"
}
stap_run $test no_load $all_pass_string -c "$exefile > /dev/null" $srcdir/$subdir/$test.stp
