Try it yourself here:
Heads Up Display
Requirements and Upload
1. Google Sync is only supported on iPhone OS versions 3.0 and above. You can check your current version by going to Settings > General > About > Version. To upgrade, follow the instructions at http://www.apple.com/iphone/softwareupdate/. Please upgrade to iPhone OS 3.0 before setting up Google Sync.
2. Perform a sync with iTunes to ensure that Contacts and Calendars from your iPhone are backed up to your computer.
3. If your business, school, or organization uses Google Apps, your administrator will first need to enable Google Sync before you can take advantage of this feature.
1. Open the Settings application on your device’s home screen.
2. Open Mail, Contacts, Calendars.
3. Tap Add Account….
4. Select Microsoft Exchange.
Enter Account Info
5. In the Email field, enter your full Google Account email address. If you use an @googlemail.com address, you may see an “Unable to verify certificate” warning when you proceed to the next step.
6. Leave the Domain field blank.
7. Enter your full Google Account email address as the Username.
8. Enter your Google Account password as the Password.
9. Tap Next at the top of your screen.
9a. Choose Accept if the Unable to Verify Certificate dialog appears.
10. When the new Server field appears, enter m.google.com.
11. Press Next at the top of your screen again.
13. Unless you want to delete all the existing Contacts and Calendars on your phone, select the Keep on my iPhone option when prompted. This will also allow you to keep syncing with your computer via iTunes.
If you want to sync only the My Contacts group, you must choose to Delete Existing Contacts during the Google Sync install when prompted. If you choose to keep existing contacts, it will sync the contents of the “All Contacts” group instead.
You’ve set up Google Sync for your iPhone. Synchronization will begin automatically if you have Push enabled on your phone. You can also open the Mail, Calendar or Contacts app and wait a few seconds to start a sync.